In your specific example you could simply define a custom "LIKE"
function, and LIKE could become Unicode aware without any goofy new
operators.

John

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Jean-Christophe
Deschamps
Sent: Tuesday, November 03, 2009 7:51 PM
To: SQLite mailing list
Subject: [sqlite] User-defined infix functions

Is it currently possible to specify that a user-defined function is of 
type infix, using the extension framework?

It would be really easier to use, say a Unicode-aware LIKE named LIKEU 
under the infix form:
                 ... test LIKEU pattern ...
than
                 ... LIKEU(pattern, test) ...

Also converting existing statements from, for instance, the native LIKE 
to the new LIKEU would be _so_ easier as well!

Would it be possible to have this feature someday, possibly as an 
optional parameter to the registering interface, or would it require 
too much deep surgery in the parser guts?



_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to