Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(70)

Unified Diff: third_party/sqlite_google/src/sqlite.h.in

Issue 924: sqlite3 pragma get/set user_version implemented (Closed) SVN Base: http://google-gears.googlecode.com/svn/contrib/dimitri.glazkov/database2/gears/
Patch Set: Created 3 months, 2 weeks ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side by-side-diff with in-line comments
Download patch
Index: third_party/sqlite_google/src/sqlite.h.in
===================================================================
--- third_party/sqlite_google/src/sqlite.h.in (revision 1608)
+++ third_party/sqlite_google/src/sqlite.h.in (working copy)
@@ -2665,7 +2665,30 @@
*/
int sqlite3_blob_write(sqlite3_blob *, const void *z, int n, int iOffset);
+#if !defined(SQLITE_OMIT_PRAGMA) && !defined(SQLITE_OMIT_PARSER)
Scott.Hess 2008/05/20 18:37:04 Shouldn't this be #if defined(SQLITE_OMIT_PRAGMA)?
Dimitri 2008/05/21 13:14:31 On 2008/05/20 18:37:04, Scott.Hess wrote: > Should
+
/*
+** CAPI3REF: Read User Version Value
+**
+** This function reads the user version cookie and sets the value of
+** user_version to it.
+**
+** Returns SQLITE_OK on success. Otherwise, an error code is returned
+*/
+int sqlite3_pragma_get_user_version(sqlite3*, int *user_version);
+
+/*
+** CAPI3REF: Write User Version Value
+**
+** This function writes the user version cookie.
+**
+** returns SQLITE_OK on success. Otherwise, an error code is returned
+*/
+int sqlite3_pragma_set_user_version(sqlite3*, int user_version);
+
+#endif /* SQLITE_OMIT_PRAGMA || SQLITE_OMIT_PARSER */
+
+/*
** Undo the hack that converts floating point types to integer for
** builds on processors without floating point support.
*/

Powered by Google App Engine
This is Rietveld r292