Open dakur opened 1 year ago
Version: dev-master
dev-master
When you use single quote ' or " in a SQL comment, dibi fails with Dibi\Exception: SQL translate error: Alone quote
'
"
Dibi\Exception: SQL translate error: Alone quote
Make a comment in SQL query containg single ' or " in it. E.g. in tests/dibi/Connection.fetch.phpt:
tests/dibi/Connection.fetch.phpt
$res = $conn->query(<<<SQL SELECT [title] FROM [products] ORDER BY [product_id] -- this isn't working SQL );
Pass without problem
Please send a PR if you can fix this.
Sorry, not that easy for me..
Version:
dev-master
Bug Description
When you use single quote
'
or"
in a SQL comment, dibi fails withDibi\Exception: SQL translate error: Alone quote
Steps To Reproduce
Make a comment in SQL query containg single
'
or"
in it. E.g. intests/dibi/Connection.fetch.phpt
:Expected Behavior
Pass without problem