mirror of
https://github.com/doctrine/orm.git
synced 2026-04-29 17:33:15 +02:00
DDC-2470: Sql Server error in createQuery using ORDER BY and setMaxResults #3099
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (May 24, 2013).
Jira issue originally created by user jonsxaero:
Important: This issue only affect to 2.4.* versions
When executing
Get the following error:
Attached the BD model
Added extra info!
Engine version: Sql server 2008 R2
When executing this SQL (returned by doctrine error) on Management Studio
Get the following error:
But if change "FECHAINICIO1"
by this
Don't get error
regards
Jonnatan Oyarzún
@doctrinebot commented on GitHub (Jun 5, 2013):
Comment created by @guilhermeblanco:
This one should not work:
This one should work:
As soon as you get this it may define the approach on how we're gonna fix the issue. =)
Cheers,
Guilherme Blanco
@doctrinebot commented on GitHub (Jun 5, 2013):
Comment created by jonsxaero:
Add extra info
Cheers,
Jonnatan Oyarzún
@doctrinebot commented on GitHub (Jun 5, 2013):
Comment created by @FabioBatSilva:
Hi Jonnatan
There is a possible fix in this branch : [DDC-2470](https://github.com/FabioBatSilva/dbal/tree/[DDC-2470]%28http://www.doctrine-project.org/jira/browse/DDC-2470%29),
but i'm not able to test it right now..
Could you please test it in your environment ?
Thanks..
@doctrinebot commented on GitHub (Jun 5, 2013):
Comment created by jonsxaero:
Hi Fabio
Thank you very much for posting this fix.
From your [DDC-2470](https://github.com/FabioBatSilva/dbal/tree/[DDC-2470]%28http://www.doctrine-project.org/jira/browse/DDC-2470%29), I downloaded and pasted files in vendor\doctrine\dbal.
Fix is working for me!.
The question is, when this fix could be merged to dbal/master branch?
Cheers,
Jonnatan Oyarzún
@doctrinebot commented on GitHub (Jun 5, 2013):
Comment created by @FabioBatSilva:
Thanks Jonnatan,
I've created a pull request : https://github.com/doctrine/dbal/pull/332
@doctrinebot commented on GitHub (Jun 7, 2013):
Comment created by @FabioBatSilva:
Fixed : https://github.com/doctrine/doctrine2/commit/753d63c2d48facdecba5d84f6ed2450024de2867
@doctrinebot commented on GitHub (Jun 7, 2013):
Issue was closed with resolution "Fixed"