From: jplyon Date: Thu, 29 May 2003 04:21:38 +0000 (+0000) Subject: Added typeof() operator. X-Git-Tag: version-3.6.10~5081 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=124e74e6855e9a1025e0cd464ee2fd7cdfee5d7b;p=thirdparty%2Fsqlite.git Added typeof() operator. Minor additions for ATTACH/DETACH. (CVS 987) FossilOrigin-Name: 8b8fa0fff26107912f0bec4e44df207c7885e273 --- diff --git a/manifest b/manifest index baf6b46a2c..fea2bf8e0e 100644 --- a/manifest +++ b/manifest @@ -1,5 +1,5 @@ -C Fix\ssegfault\sthat\soccurs\swhen\sopening\sa\snon-existing\sdatabase\sin\sthe\sshell\nthen\simmediately\sdoing\s".q".\s(CVS\s986) -D 2003-05-19T23:55:30 +C Added\stypeof()\soperator.\nMinor\sadditions\sfor\sATTACH/DETACH.\s(CVS\s987) +D 2003-05-29T04:21:39 F Makefile.in 1ff85c27d4350c74118341024e8a4fb2a04a3a43 F Makefile.linux-gcc b86a99c493a5bfb402d1d9178dcdc4bd4b32f906 F README f1de682fbbd94899d50aca13d387d1b3fd3be2dd @@ -155,7 +155,7 @@ F www/faq.tcl 12d1788d4abcfe1ff3054e17605df2418883bf6f F www/fileformat.tcl d9b586416c0d099b82e02e469d532c9372f98f3f F www/formatchng.tcl cbaf0f410096c71f86a7537cf9249fa04b9a659c F www/index.tcl a34315cada875af0b098b4c45981da8ab33fe7b6 -F www/lang.tcl 4a22a96cfc3f8eae430cb4a0996d7c7855b07586 +F www/lang.tcl 0d3037b9d3be2450e03ff588bfbb048597907cf3 F www/mingw.tcl d96b451568c5d28545fefe0c80bee3431c73f69c F www/nulls.tcl 29497dac2bc5b437aa7e2e94577dad4d8933ed26 F www/omitted.tcl 118062f40a203fcb88b8d68ef1d7c0073ac191ec @@ -165,7 +165,7 @@ F www/speed.tcl cb4c10a722614aea76d2c51f32ee43400d5951be F www/sqlite.tcl 4bd1729e320f5fa9125f0022b281fbe839192125 F www/tclsqlite.tcl 1db15abeb446aad0caf0b95b8b9579720e4ea331 F www/vdbe.tcl 2013852c27a02a091d39a766bc87cff329f21218 -P 24191373796b7fd6255ef9b70ce2344326308113 -R 0ad195f6ccdfb80921d558f2c3b71dfc -U drh -Z 12c0806bd04cf1493cea64fc795aa255 +P e8566cf5a381fa7655caacbc0fe95091e1137fea +R 2370f3a91a8462e6af77d63e50ad9dc5 +U jplyon +Z b0d55a69cad4bca6e8fe74221533622d diff --git a/manifest.uuid b/manifest.uuid index 4c7e2fd6f1..a3dab974a5 100644 --- a/manifest.uuid +++ b/manifest.uuid @@ -1 +1 @@ -e8566cf5a381fa7655caacbc0fe95091e1137fea \ No newline at end of file +8b8fa0fff26107912f0bec4e44df207c7885e273 \ No newline at end of file diff --git a/www/lang.tcl b/www/lang.tcl index b89f38dc4e..b537ffb58d 100644 --- a/www/lang.tcl +++ b/www/lang.tcl @@ -1,7 +1,7 @@ # # Run this Tcl script to generate the sqlite.html file. # -set rcsid {$Id: lang.tcl,v 1.58 2003/05/17 01:39:40 drh Exp $} +set rcsid {$Id: lang.tcl,v 1.59 2003/05/29 04:21:39 jplyon Exp $} puts { @@ -144,7 +144,8 @@ DROP in the original database.

You cannot create a new table with the same name as a table in an attached database, but you can attach a database which contains -tables whose names are duplicates of tables in the main database.

+tables whose names are duplicates of tables in the main database. It is +also permissible to attach the same database file multiple times.

Tables in an attached database can be referred to using the syntax database-name.table-name. If an attached table doesn't have @@ -308,7 +309,7 @@ created table that is to be indexed, and a parenthesized list of names of columns in the table that are used for the index key. Each column name can be followed by one of the "ASC" or "DESC" keywords to indicate sort order, but the sort order is ignored in the current -implementation.

+implementation. Sorting is always done in ascending order.

There are no arbitrary limits on the number of indices that can be attached to a single table, nor on the number of columns in an index.

@@ -655,8 +656,11 @@ DETACH [DATABASE] } puts { -

This statement detaches an additional database file previously attached -using the ATTACH DATABASE statement.

+

This statement detaches an additional database connection previously +attached using the ATTACH DATABASE statement. It +is possible to have the same database file attached multiple times using +different names, and detaching one connection to a file will leave the +others intact.

This statement will fail if SQLite is in the middle of a transaction.

} @@ -1000,6 +1004,13 @@ right rather than the left. If SQLite is configured to support UTF-8, then characters indices refer to actual UTF-8 characters, not bytes. + +typeof(X) +Return the type of the expression X. The only +return values are "numeric" and "text". SQLite's type handling is +explained in Datatypes in SQLite. + + upper(X) Return a copy of input string X converted to all