mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-30 19:03:16 +03:00
Apply Tcl 'nullvalue' patch from Stefan Finzel. (CVS 2441)
FossilOrigin-Name: 9906ae37b9be684b615a1190cf8798513baa799a
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
#
|
||||
# Run this Tcl script to generate the tclsqlite.html file.
|
||||
#
|
||||
set rcsid {$Id: tclsqlite.tcl,v 1.12 2004/12/17 15:41:13 tpoindex Exp $}
|
||||
set rcsid {$Id: tclsqlite.tcl,v 1.13 2005/04/03 23:54:45 danielk1977 Exp $}
|
||||
source common.tcl
|
||||
header {The Tcl interface to the SQLite library}
|
||||
proc METHOD {name text} {
|
||||
@ -46,7 +46,7 @@ the database is stored.
|
||||
|
||||
<p>
|
||||
Once an SQLite database is open, it can be controlled using
|
||||
methods of the <i>dbcmd</i>. There are currently 18 methods
|
||||
methods of the <i>dbcmd</i>. There are currently 19 methods
|
||||
defined:</p>
|
||||
|
||||
<p>
|
||||
@ -66,6 +66,7 @@ foreach m [lsort {
|
||||
eval
|
||||
function
|
||||
last_insert_rowid
|
||||
nullvalue
|
||||
onecolumn
|
||||
progress
|
||||
timeout
|
||||
@ -365,6 +366,24 @@ db function hex {format 0x%X}
|
||||
|
||||
}
|
||||
|
||||
##############################################################################
|
||||
METHOD nullvalue {
|
||||
|
||||
<p>
|
||||
The "nullvalue" method changes the representation for NULL returned
|
||||
as result of the "eval" method.</p>
|
||||
|
||||
<blockquote><b>
|
||||
db1 nullvalue NULL
|
||||
</b></blockquote>
|
||||
|
||||
<p>The "nullvalue" method is useful to differ between NULL and empty
|
||||
column values as Tcl lacks a NULL representation. The default
|
||||
representation for NULL values is an empty string.</p>
|
||||
}
|
||||
|
||||
|
||||
|
||||
##############################################################################
|
||||
METHOD onecolumn {
|
||||
|
||||
|
Reference in New Issue
Block a user