Patch originally from http://drupal.org/node/654662#comment-2407998 with minor clean-up. Not familiar enough with DBTNG at this point to know if it really makes sense, but it does fix the issue.

Now, about MySQL…

CommentFileSizeAuthor
sqlite-database-d7.patch761 bytesGarrett Albright

Comments

Crell’s picture

It looks like the right syntax, but I defer to chx and DamZ on whether or not it's the right fix for SQLite.

backwardgraphics’s picture

I can confirm this was an error for me also. The patch fixed it.

Thanks,

Jonny
Web Developer
JonnyTDesigns
Email Me
www.jonnytdesigns.com

Scunt’s picture

Also fixed,

Thanks

chx’s picture

Status: Needs review » Reviewed & tested by the community

If the optional ESCAPE clause is present, then the expression following the ESCAPE keyword must evaluate to a string consisting of a single character. This character may be used in the LIKE pattern to include literal percent or underscore characters. The escape character followed by a percent symbol, underscore or itself matches a literal percent symbol, underscore or escape character in the string, respectively.

So as we are using \ as the escape since the isuse linked in the original, this is right.

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Committed to HEAD, thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.