Commit cfb109b8 authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 787687: SQLite doesn't support CHAR_LENGTH natively

r=wicked a=LpSolit
parent 66b1bdd3
......@@ -131,6 +131,7 @@ sub new {
# so that's what we use, and I don't know of any way in SQLite to
# alias the SQL "substr" function to be called "SUBSTRING".
$self->sqlite_create_function('substring', 3, \&CORE::substr);
$self->sqlite_create_function('char_length', 1, sub { length($_[0]) });
$self->sqlite_create_function('mod', 2, \&_sqlite_mod);
$self->sqlite_create_function('now', 0, \&_sqlite_now);
$self->sqlite_create_function('localtimestamp', 1, \&_sqlite_now);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment