]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Documented SQL fns IFNULL() and NULLIF(). (CVS 1015)
authorjplyon <jplyon@noemail.net>
Sun, 8 Jun 2003 08:36:33 +0000 (08:36 +0000)
committerjplyon <jplyon@noemail.net>
Sun, 8 Jun 2003 08:36:33 +0000 (08:36 +0000)
FossilOrigin-Name: 190252fee0a86eb6f8c24a2402e36482e3bd514c

manifest
manifest.uuid
www/lang.tcl

index 884ac553e03e865472384a826b81977bf3120819..bbc248881460ce7497956d4cc20b93a463b2b571 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Use\ssqliteOsFileExists()\sin\sthe\sdebugging\shook\sin\svdbe.c,\sinstead\sof\saccess().\nTicket\s#341.\s(CVS\s1014)
-D 2003-06-07T11:33:45
+C Documented\sSQL\sfns\sIFNULL()\sand\sNULLIF().\s(CVS\s1015)
+D 2003-06-08T08:36:34
 F Makefile.in 98a14dc13a78ca0e12007e974c93aeb098db7f68
 F Makefile.linux-gcc b86a99c493a5bfb402d1d9178dcdc4bd4b32f906
 F README f1de682fbbd94899d50aca13d387d1b3fd3be2dd
@@ -155,7 +155,7 @@ F www/faq.tcl 88d3b95d9cd8e374772daa3a646c4d107e7f3e9b
 F www/fileformat.tcl d9b586416c0d099b82e02e469d532c9372f98f3f
 F www/formatchng.tcl cbaf0f410096c71f86a7537cf9249fa04b9a659c
 F www/index.tcl a34315cada875af0b098b4c45981da8ab33fe7b6
-F www/lang.tcl bc92ee5c8f77d1499040b7556de9a6c76703b2ba
+F www/lang.tcl f206cb1b637337f3783f05716edb577cf327377a
 F www/mingw.tcl d96b451568c5d28545fefe0c80bee3431c73f69c
 F www/nulls.tcl 29497dac2bc5b437aa7e2e94577dad4d8933ed26
 F www/omitted.tcl 118062f40a203fcb88b8d68ef1d7c0073ac191ec
@@ -165,7 +165,7 @@ F www/speed.tcl 296cc5632d069b56d3ef5409ca0df90f486c10fb
 F www/sqlite.tcl 4bd1729e320f5fa9125f0022b281fbe839192125
 F www/tclsqlite.tcl 1db15abeb446aad0caf0b95b8b9579720e4ea331
 F www/vdbe.tcl 14fdcc7fe8a60a6ba8584903636db8dc37eef26a
-P 5dad7c05e9789e101d5ce75a6f3ea2ffb278b29d
-R 14326af17af8b228ddca6070dcaf4ff4
-U drh
-Z 266945e115d9e22002a3c382885d3cfd
+P 7d3405b95bae74e0c476a7bdf708ca518723eaf7
+R 70e6f0a74b3b545144652db7473f3b65
+U jplyon
+Z 0185e23f4d75ba1076c2f3f0760f318d
index af5a993fc4920068595aa5ee2e0aa91d18e425ca..d029eaff547ef57e544bb1ffd5fdf7251b4420cc 100644 (file)
@@ -1 +1 @@
-7d3405b95bae74e0c476a7bdf708ca518723eaf7
\ No newline at end of file
+190252fee0a86eb6f8c24a2402e36482e3bd514c
\ No newline at end of file
index a480655e70c23785179c9ab24dab4740ff93400f..29ffabc035907b6412edf031a77bd5bec4061146 100644 (file)
@@ -1,7 +1,7 @@
 #
 # Run this Tcl script to generate the sqlite.html file.
 #
-set rcsid {$Id: lang.tcl,v 1.60 2003/06/07 08:56:09 jplyon Exp $}
+set rcsid {$Id: lang.tcl,v 1.61 2003/06/08 08:36:34 jplyon Exp $}
 
 puts {<html>
 <head>
@@ -904,7 +904,8 @@ API.</p>
 <tr>
 <td valign="top" align="right">coalesce(<i>X</i>,<i>Y</i>,...)</td>
 <td valign="top">Return a copy of the first non-NULL argument.  If
-all arguments are NULL then NULL is returned.</td>
+all arguments are NULL then NULL is returned.  There must be at least 
+2 arguments.</td>
 </tr>
 
 <tr>
@@ -918,6 +919,13 @@ be used to override this function and thereby change the operation
 of the <a href="#glob">GLOB</a> operator.</td>
 </tr>
 
+<tr>
+<td valign="top" align="right">ifnull(<i>X</i>,<i>Y</i>)</td>
+<td valign="top">Return a copy of the first non-NULL argument.  If
+both arguments are NULL then NULL is returned. This behaves the same as 
+<b>coalesce()</b> above.</td>
+</tr>
+
 <tr>
 <td valign="top" align="right">last_insert_rowid()</td>
 <td valign="top">Return the ROWID of the last row insert from this
@@ -969,6 +977,12 @@ it has 2 or more arguments but converts to an aggregate function if given
 only a single argument.</td>
 </tr>
 
+<tr>
+<td valign="top" align="right">nullif(<i>X</i>,<i>Y</i>)</td>
+<td valign="top">Return the first argument if the arguments are different, 
+otherwise return NULL.</td>
+</tr>
+
 <tr>
 <td valign="top" align="right">random(*)</td>
 <td valign="top">Return a random integer between -2147483648 and