From 46dd62bc69a7c87aec4596603f30815319bab142 Mon Sep 17 00:00:00 2001 From: danielk1977 Date: Wed, 16 Feb 2005 23:43:33 +0000 Subject: [PATCH] Clarify that columns are indexed from 0 when using sqlite3_column_XXX() APIs. No code changes. (CVS 2348) FossilOrigin-Name: d5eb25d8d0d444ab98b26f7f1ac763919e692806 --- manifest | 14 +++++++------- manifest.uuid | 2 +- www/capi3.tcl | 8 +++++++- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/manifest b/manifest index fc03e20bc1..80d0523a49 100644 --- a/manifest +++ b/manifest @@ -1,5 +1,5 @@ -C Change\sto\sconfigure.ac\scontributed\sby\sa\sreader.\s(CVS\s2346) -D 2005-02-16T03:45:51 +C Clarify\sthat\scolumns\sare\sindexed\sfrom\s0\swhen\susing\ssqlite3_column_XXX()\sAPIs.\sNo\scode\schanges.\s(CVS\s2348) +D 2005-02-16T23:43:34 F Makefile.in 76443a83549d1539105e12d13bd0054a05ab2214 F Makefile.linux-gcc a9e5a0d309fa7c38e7c14d3ecf7690879d3a5457 F README a01693e454a00cc117967e3f9fdab2d4d52e9bc1 @@ -237,7 +237,7 @@ F www/arch2b.fig d22a2c9642d584b89d4088b1e51e2bb0f7c04bed F www/audit.tcl 90e09d580f79c7efec0c7d6f447b7ec5c2dce5c0 F www/autoinc.tcl b357f5ba954b046ee35392ce0f884a2fcfcdea06 F www/c_interface.tcl b51b08591554c16a0c3ef718364a508ac25abc7e -F www/capi3.tcl 9676103393dbf1c313b5618c9da59033f82cd924 +F www/capi3.tcl f01802bf3413c603f320e396b951979942ba4ee0 F www/capi3ref.tcl c5a3ae75fc3505c034f3c4bbb62ab94cf359ac39 F www/changes.tcl 34c1ddc0920970e2d8f50dbfe7685bdcda66eece F www/common.tcl de758130d54d95d151ea0d17a2ae5b92e1bb01de @@ -273,7 +273,7 @@ F www/tclsqlite.tcl e73f8f8e5f20e8277619433f7970060ab01088fc F www/vdbe.tcl 095f106d93875c94b47367384ebc870517431618 F www/version3.tcl 092a01f5ef430d2c4acc0ae558d74c4bb89638a0 F www/whentouse.tcl 3e522a06ad41992023c80ca29a048ae2331ca5bd -P 97c7aaf1870a86955f0f3a0cbe06187e3c3ccc90 -R 020fee1418d831a2996b63e2363938a6 -U drh -Z 459e497f379a6c7fdbda3608d27ffb12 +P 0cd3bf02d25933286085708308ff963c50c8d33d +R 492a5c01b632304cfb90a3f1de846e00 +U danielk1977 +Z b428f0e9786ef55978d4f9bb1c1581b6 diff --git a/manifest.uuid b/manifest.uuid index e8bc72a51a..ef0a63329c 100644 --- a/manifest.uuid +++ b/manifest.uuid @@ -1 +1 @@ -0cd3bf02d25933286085708308ff963c50c8d33d \ No newline at end of file +d5eb25d8d0d444ab98b26f7f1ac763919e692806 \ No newline at end of file diff --git a/www/capi3.tcl b/www/capi3.tcl index 76019bb447..184cc7f4b5 100644 --- a/www/capi3.tcl +++ b/www/capi3.tcl @@ -1,4 +1,4 @@ -set rcsid {$Id: capi3.tcl,v 1.7 2005/01/03 01:33:00 drh Exp $} +set rcsid {$Id: capi3.tcl,v 1.8 2005/02/16 23:43:34 danielk1977 Exp $} source common.tcl header {C/C++ Interface For SQLite Version 3} puts { @@ -273,6 +273,12 @@ then sqlite3_data_count() will return 0 whereas sqlite3_column_count() will continue to return the number of columns in the result set.

+

Returned data is examined using the other sqlite3_column_XXX() functions, +all of which take a column number as their second parameter. Columns are +zero-indexed from left to right. Note that this is different to parameters, +which are indexed starting at one. +

+

The sqlite3_column_type() function returns the datatype for the value in the Nth column. The return value is one