-
-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
escapeLike issue on postgre #159
Comments
The PostgreSQL specifies two special chars in LIKE pattern: the Problem may be the Imho, the right solution is the:
It should work with any PostgreSQL setting. Can you confirm that? |
Does this directly affect only LIKE? |
…loses dg#159] The 'standard_conforming_strings' can be changed by SQL query 'SET', so realtime checking must be performed.
hi guys |
@milo currently using the minified version, could you generate such a file including your latest commits? Will be more straightforward to test... thx in advance |
@dg any quick help on this ;-) ? |
Confirmed. Thank you so much to all for your reactivity. |
* master: (37 commits) Released version 2.3.1 removed version.txt dibi: named connections are allowed [Closes dg#161] Dibi: Dump now recognize MsSql2012 offset as keyword DibiPdoDriver: added support for MsSql2012 Offset Tracy\Panel: added vector icon added contributing.md Released version 2.3.0 Postgre: added test for matching by %like Postgre: fixed %like escaping [Closes dg#159] Dibi: $defaultDriver changed to mysqli [Closes dg#156] Released 2.3.0-RC1 removed bridge for Nette 2.0 (BC break) dibi: named connections and activate() are deprecated (BC break) DibiFluent: add `leftJoin` and `on` to phpdoc. DibiFirePhpLogger: save some header operations for sites with hundreds of sql queries. DibiFirePhpLogger: Allow user defined size of json stream chunks [Closes dg#148] DibiTranslator: respect %if blocks for %lmt and %ofs as well [Closes dg#145][Closes dg#87] DibiResult: float detection locale fix [Closes dg#154] DibiMySqliDriver.php: fixes for HHVM ...
Hi David,
First of all, thanks for your great work. As you maybe already know, Dibi is our historical ORM for the Pydio project, and we love it: doing the job efficiently, and very lightweight (we embed the minified version).
I'm not totally sure this is an issue, or maybe a postgre config or version problem, I must admit I'm not a PG expert. We are encountering an issue with LIKE queries containing an underscore, and I happened to fix this by changing the escapeLike function of the PG driver to replace '' by _ instead of \ .
Which gives for the escapeLike function
Do you know if it's a bug or something wrong on my -db- side?
Using PG 9.3 BTW.
Cheers
Charles
The text was updated successfully, but these errors were encountered: