IFNULL-like mechanism now works on SQLite 2 too

This commit is contained in:
Miroslav Stampar
2013-01-21 15:04:27 +01:00
parent 75bf8528d1
commit 832d95984c
2 changed files with 4 additions and 3 deletions

View File

@@ -296,7 +296,7 @@
<cast query="CAST(%s AS VARCHAR(8000))" dbms_version="&gt;=3.0"/>
<!-- NOTE: On SQLite version 2 everything is stored as a string (Reference: http://www.mono-project.com/SQLite) -->
<length query="LENGTH(%s)"/>
<isnull query="IFNULL(%s,' ')" dbms_version="&gt;=3.0"/>
<isnull query="COALESCE(%s,' ')"/>
<delimiter query="||"/>
<limit query="LIMIT %d,%d"/>
<limitregexp query="\s+LIMIT\s+([\d]+)\s*\,\s*([\d]+)" query2="\s+LIMIT\s+([\d]+)"/>