U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ SQL » How to use Like() with SqlArray
Re: How to use Like() with SqlArray [message #4131 is a reply to message #4129] Mon, 24 July 2006 08:59 Go to previous messageGo to previous message
zsolt is currently offline  zsolt
Messages: 702
Registered: December 2005
Location: Budapest, Hungary
Contributor
Thanks, you are right.
I have changed Like() in Sqlexp.cpp from
SqlBool Like(const SqlVal& a, const SqlVal& b) {
	int sqld = GetSqlDialect(a, b);
	return SqlBool(a, sqld == SQLD_MYSQL || sqld == SQLD_SQLITE3 ? " like binary " : " like ", b, SqlS::COMP);
}

to
SqlBool Like(const SqlVal& a, const SqlVal& b) {
	int sqld = GetSqlDialect(a, b);
	return SqlBool(a, sqld == SQLD_MYSQL ? " like binary " : " like ", b, SqlS::COMP);
}

and now it is working correcly. I have no idea why that "binary" was in sources. I tested "like binary" directly in sqlite and it produces an error. So this was a bug, I think.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: sqlite3 compile problems on fresh install
Next Topic: sqlite3 plugin documentation
Goto Forum:
  


Current Time: Wed May 06 22:06:13 GMT+2 2026

Total time taken to generate the page: 0.00683 seconds