diff options
author | drh <drh@noemail.net> | 2008-04-27 22:29:01 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2008-04-27 22:29:01 +0000 |
commit | e1b3e8064e81d5f2a5971523f54e7ff18f10dd6c (patch) | |
tree | a8c838307316bb09d335af52eb35eefca4a0f678 /src | |
parent | a5808f31f0e5c8246827f282c8b3b38a716d3551 (diff) | |
download | sqlite-e1b3e8064e81d5f2a5971523f54e7ff18f10dd6c.tar.gz sqlite-e1b3e8064e81d5f2a5971523f54e7ff18f10dd6c.zip |
Fix the documentation to agree with long-standing behavior for the
sqlite3_bind_parameter_name() interface on an ?NNN parameter.
Ticket #2975. (CVS 5054)
FossilOrigin-Name: df9991d5bbc6d90087f022c55b070c11dc510077
Diffstat (limited to 'src')
-rw-r--r-- | src/sqlite.h.in | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/sqlite.h.in b/src/sqlite.h.in index 08feb48d7..2dd044bb4 100644 --- a/src/sqlite.h.in +++ b/src/sqlite.h.in @@ -30,7 +30,7 @@ ** the version number) and changes its name to "sqlite3.h" as ** part of the build process. ** -** @(#) $Id: sqlite.h.in,v 1.308 2008/04/24 08:56:54 danielk1977 Exp $ +** @(#) $Id: sqlite.h.in,v 1.309 2008/04/27 22:29:02 drh Exp $ */ #ifndef _SQLITE3_H_ #define _SQLITE3_H_ @@ -2684,11 +2684,12 @@ int sqlite3_bind_parameter_count(sqlite3_stmt*); ** ** This routine returns a pointer to the name of the n-th ** SQL parameter in a [prepared statement]. -** SQL parameters of the form ":AAA" or "@AAA" or "$AAA" have a name -** which is the string ":AAA" or "@AAA" or "$VVV". -** In other words, the initial ":" or "$" or "@" +** SQL parameters of the form "?NNN" or ":AAA" or "@AAA" or "$AAA" +** have a name which is the string "?NNN" or ":AAA" or "@AAA" or "$AAA" +** respectively. +** In other words, the initial ":" or "$" or "@" or "?" ** is included as part of the name. -** Parameters of the form "?" or "?NNN" have no name. +** Parameters of the form "?" without a following integer have no name. ** ** The first host parameter has an index of 1, not 0. ** @@ -2708,8 +2709,7 @@ int sqlite3_bind_parameter_count(sqlite3_stmt*); ** a UTF-8 rendering of the name of the SQL parameter in ** [prepared statement] S having index N, or ** NULL if there is no SQL parameter with index N or if the -** parameter with index N is an anonymous parameter "?" or -** a numbered parameter "?NNN". +** parameter with index N is an anonymous parameter "?". */ const char *sqlite3_bind_parameter_name(sqlite3_stmt*, int); |