2003-06-20 17:31:55 +00:00
|
|
|
<?xml version='1.0' encoding='iso-8859-1'?>
|
2009-07-11 09:02:41 +00:00
|
|
|
<!-- $Revision$ -->
|
2007-12-21 18:01:02 +00:00
|
|
|
<appendix xml:id="sqlite.constants" xmlns="http://docbook.org/ns/docbook">
|
2005-02-18 17:04:56 +00:00
|
|
|
&reftitle.constants;
|
|
|
|
&extension.constants;
|
2003-06-20 17:31:55 +00:00
|
|
|
<para>
|
|
|
|
The functions <function>sqlite_fetch_array</function> and
|
|
|
|
<function>sqlite_current</function> use a constant for
|
|
|
|
the different types of result arrays. The following constants are
|
|
|
|
defined:
|
2003-06-20 18:26:30 +00:00
|
|
|
</para>
|
2005-02-18 17:04:56 +00:00
|
|
|
<variablelist>
|
|
|
|
<title>SQLite result type constants</title>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<constant>SQLITE_ASSOC</constant>
|
|
|
|
(<type>int</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
Columns are returned into the array having the field name as the array
|
|
|
|
index.
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<constant>SQLITE_BOTH</constant>
|
|
|
|
(<type>int</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
Columns are returned into the array having both a numerical index
|
|
|
|
and the field name as the array index.
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<constant>SQLITE_NUM</constant>
|
|
|
|
(<type>int</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
Columns are returned into the array having a numerical index to the
|
|
|
|
fields. This index starts with 0, the first field in the result.
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
2003-06-20 18:26:30 +00:00
|
|
|
<para>
|
2005-02-18 17:04:56 +00:00
|
|
|
A number of functions may return status codes. The following constants are
|
|
|
|
defined:
|
2003-06-20 17:31:55 +00:00
|
|
|
</para>
|
2005-02-18 17:04:56 +00:00
|
|
|
<variablelist>
|
|
|
|
<title>SQLite status code constants</title>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<constant>SQLITE_OK</constant>
|
|
|
|
(<type>int</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
Successful result.
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<constant>SQLITE_ERROR</constant>
|
|
|
|
(<type>int</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
SQL error or missing database.
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<constant>SQLITE_INTERNAL</constant>
|
|
|
|
(<type>int</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
An internal logic error in SQLite.
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<constant>SQLITE_PERM</constant>
|
|
|
|
(<type>int</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
Access permission denied.
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<constant>SQLITE_ABORT</constant>
|
|
|
|
(<type>int</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
Callback routine requested an abort.
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<constant>SQLITE_BUSY</constant>
|
|
|
|
(<type>int</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
The database file is locked.
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<constant>SQLITE_LOCKED</constant>
|
|
|
|
(<type>int</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
A table in the database is locked.
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<constant>SQLITE_NOMEM</constant>
|
|
|
|
(<type>int</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
Memory allocation failed.
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<constant>SQLITE_READONLY</constant>
|
|
|
|
(<type>int</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
Attempt to write a readonly database.
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<constant>SQLITE_INTERRUPT</constant>
|
|
|
|
(<type>int</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
Operation terminated internally.
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<constant>SQLITE_IOERR</constant>
|
|
|
|
(<type>int</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
Disk I/O error occurred.
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
Work on constants
Added missing constants:
DOM_PHP_ERR, GLOB_AVAILABLE_FLAGS, FILE_NO_DEFAULT_CONTEXT, FNM_NOESCAPE, FNM_PATHNAME,
FNM_PERIOD, FNM_CASEFOLD, IMAGETYPE_JPEG2000, NAN, INF, MYSQLI_TYPE_INTERVAL, MYSQLI_TYPE_CHAR,
MYSQLI_CURSOR_TYPE_FOR_UPDATE, MYSQLI_CURSOR_TYPE_NO_CURSOR, MYSQLI_CURSOR_TYPE_READ_ONLY,
MYSQLI_CURSOR_TYPE_SCROLLABLE, MYSQLI_STMT_ATTR_CURSOR_TYPE, MYSQLI_STMT_ATTR_PREFETCH_ROWS,
MYSQLI_STMT_ATTR_UPDATE_MAX_LENGTH, MYSQLI_SET_CHARSET_NAME, OPENSSL_ALGO_DSS1, TCP_NODELAY,
SQLITE_NOTADB, SQLITE_FORMAT, PSFS_FLAG_NORMAL, PSFS_FLAG_FLUSH_INC, PSFS_FLAG_FLUSH_CLOSE,
XML_SAX_IMPL
Added missing <constant></constant> markup
Fixed:
* GD_BUNDLE => GD_BUNDLED
* SOCKET_ERMCHG => SOCKET_EREMCHG
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@277584 c90b9560-bf6c-de11-be94-00142212c4b1
2009-03-22 15:45:07 +00:00
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<constant>SQLITE_NOTADB</constant>
|
|
|
|
(<type>int</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
File opened that is not a database file.
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2005-02-18 17:04:56 +00:00
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<constant>SQLITE_CORRUPT</constant>
|
|
|
|
(<type>int</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
The database disk image is malformed.
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
Work on constants
Added missing constants:
DOM_PHP_ERR, GLOB_AVAILABLE_FLAGS, FILE_NO_DEFAULT_CONTEXT, FNM_NOESCAPE, FNM_PATHNAME,
FNM_PERIOD, FNM_CASEFOLD, IMAGETYPE_JPEG2000, NAN, INF, MYSQLI_TYPE_INTERVAL, MYSQLI_TYPE_CHAR,
MYSQLI_CURSOR_TYPE_FOR_UPDATE, MYSQLI_CURSOR_TYPE_NO_CURSOR, MYSQLI_CURSOR_TYPE_READ_ONLY,
MYSQLI_CURSOR_TYPE_SCROLLABLE, MYSQLI_STMT_ATTR_CURSOR_TYPE, MYSQLI_STMT_ATTR_PREFETCH_ROWS,
MYSQLI_STMT_ATTR_UPDATE_MAX_LENGTH, MYSQLI_SET_CHARSET_NAME, OPENSSL_ALGO_DSS1, TCP_NODELAY,
SQLITE_NOTADB, SQLITE_FORMAT, PSFS_FLAG_NORMAL, PSFS_FLAG_FLUSH_INC, PSFS_FLAG_FLUSH_CLOSE,
XML_SAX_IMPL
Added missing <constant></constant> markup
Fixed:
* GD_BUNDLE => GD_BUNDLED
* SOCKET_ERMCHG => SOCKET_EREMCHG
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@277584 c90b9560-bf6c-de11-be94-00142212c4b1
2009-03-22 15:45:07 +00:00
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<constant>SQLITE_FORMAT</constant>
|
|
|
|
(<type>int</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
Auxiliary database format error.
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2005-02-18 17:04:56 +00:00
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<constant>SQLITE_NOTFOUND</constant>
|
|
|
|
(<type>int</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
(Internal) Table or record not found.
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<constant>SQLITE_FULL</constant>
|
|
|
|
(<type>int</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
Insertion failed because database is full.
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<constant>SQLITE_CANTOPEN</constant>
|
|
|
|
(<type>int</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
Unable to open the database file.
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<constant>SQLITE_PROTOCOL</constant>
|
|
|
|
(<type>int</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
Database lock protocol error.
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<constant>SQLITE_EMPTY</constant>
|
|
|
|
(<type>int</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
(Internal) Database table is empty.
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<constant>SQLITE_SCHEMA</constant>
|
|
|
|
(<type>int</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
The database schema changed.
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<constant>SQLITE_TOOBIG</constant>
|
|
|
|
(<type>int</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
Too much data for one row of a table.
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<constant>SQLITE_CONSTRAINT</constant>
|
|
|
|
(<type>int</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
Abort due to constraint violation.
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<constant>SQLITE_MISMATCH</constant>
|
|
|
|
(<type>int</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
Data type mismatch.
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<constant>SQLITE_MISUSE</constant>
|
|
|
|
(<type>int</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
Library used incorrectly.
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<constant>SQLITE_NOLFS</constant>
|
|
|
|
(<type>int</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
Uses of OS features not supported on host.
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<constant>SQLITE_AUTH</constant>
|
|
|
|
(<type>int</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
Authorized failed.
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<constant>SQLITE_ROW</constant>
|
|
|
|
(<type>int</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
Internal process has another row ready.
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<constant>SQLITE_DONE</constant>
|
|
|
|
(<type>int</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
Internal process has finished executing.
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
2007-12-21 18:01:02 +00:00
|
|
|
</appendix>
|
2003-06-20 17:31:55 +00:00
|
|
|
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
|
|
Local variables:
|
|
|
|
mode: sgml
|
|
|
|
sgml-omittag:t
|
|
|
|
sgml-shorttag:t
|
|
|
|
sgml-minimize-attributes:nil
|
|
|
|
sgml-always-quote-attributes:t
|
|
|
|
sgml-indent-step:1
|
|
|
|
sgml-indent-data:t
|
|
|
|
indent-tabs-mode:nil
|
|
|
|
sgml-parent-document:nil
|
2009-09-25 07:04:39 +00:00
|
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
2003-06-20 17:31:55 +00:00
|
|
|
sgml-exposed-tags:nil
|
|
|
|
sgml-local-catalogs:nil
|
|
|
|
sgml-local-ecat-files:nil
|
|
|
|
End:
|
|
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
|
|
vim: et tw=78 syn=sgml
|
|
|
|
vi: ts=1 sw=1
|
|
|
|
-->
|