mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-2193: Named native query bug? #2760
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 (Dec 11, 2012).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user dingdangjyz:
@NamedNativeQueries is a useful thing, but I have found some problems during my using.
1、Normal
2、Error,cannot connect to the server
3、Cannot use alias.The same problem as the second one.
@doctrinebot commented on GitHub (Dec 12, 2012):
Comment created by @FabioBatSilva:
Hi
Doctrine does not change the native query at all
The problem seems related with database connection.
Could you provide more details please?
Cheers
@doctrinebot commented on GitHub (Dec 13, 2012):
Comment created by dingdangjyz:
Doctrine\Common\Lexer.php
Hello, after checking, I found the problem should be here. As long as SQL wrap, or fill in alias, it will be error. It seems to be the preg_split problem?
@doctrinebot commented on GitHub (Dec 13, 2012):
Comment created by @FabioBatSilva:
Hi
Could you try to add a failing test case please ?
Cheers
@doctrinebot commented on GitHub (Dec 14, 2012):
Comment created by dingdangjyz:
xp php5.3.8 Apache
@doctrinebot commented on GitHub (Dec 14, 2012):
Comment created by dingdangjyz:
@NamedNativeQueries query
If we write the long SQL, it will be fault. NO error massage.
1251 charecter must be wrong.
I still insist it is the problem of preg_split in
Doctrine\Common\Lexer.php
@doctrinebot commented on GitHub (Dec 16, 2012):
Comment created by @FabioBatSilva:
Can't reproduce,
Could you try to change the attached test case and make it fail.
Cheers
@doctrinebot commented on GitHub (Dec 24, 2012):
Comment created by @beberlei:
The Doctrine\Common\Lexer is never used in combination with native queries, only with the Annotation Parser, so i cannot be the preg_split that causes your SQL to be broken. Or do you get annotation errors?
Also what database are you using? maybe its related to the DBAL sql parsing?
@doctrinebot commented on GitHub (Dec 31, 2012):
Comment created by dingdangjyz:
I'm sorry my English is too bad.
I think it's Doctrine \ is \ Lexer. PHP preg_split the function of the problem in this file.
My system environment is xp/apache 5.3 + / php_pdo_sqlsrv_53 / mssql2000