]> granicus.if.org Git - python/commitdiff
Issue #28985: Update authorizer constants in sqlite3 module
authorBerker Peksag <berker.peksag@gmail.com>
Mon, 2 Jan 2017 03:38:10 +0000 (06:38 +0300)
committerBerker Peksag <berker.peksag@gmail.com>
Mon, 2 Jan 2017 03:38:10 +0000 (06:38 +0300)
Dates and version information from the changelog:

* 2006-08-12 (3.3.7) added SQLITE_CREATE_VTABLE, SQLITE_DROP_VTABLE
* 2006-10-09 (3.3.8) added SQLITE_FUNCTION
* 2009-01-12 (3.6.8) added SQLITE_SAVEPOINT
* 2014-02-03 (3.8.3) added SQLITE_RECURSIVE

Patch by Dingyuan Wang.

Misc/NEWS
Modules/_sqlite/module.c

index 516c322958264907b74f48a170e554a84a871a6b..6152a3fc65fecf44eaf94172fcbda41cb5d59367 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -208,6 +208,9 @@ Core and Builtins
 Library
 -------
 
+- Issue #28985: Update authorizer constants in sqlite3 module.
+  Patch by Dingyuan Wang.
+
 - Issue #29094: Offsets in a ZIP file created with extern file object and modes
   "w" and "x" now are relative to the start of the file.
 
index cc45331ab55d1650fa585bccad91e81057795270..72c3a7f34fca0e68b06d27b48164db23a345fd89 100644 (file)
@@ -302,6 +302,19 @@ static const IntConstantPair _int_constants[] = {
 #endif
 #if SQLITE_VERSION_NUMBER >= 3003000
     {"SQLITE_ANALYZE", SQLITE_ANALYZE},
+#endif
+#if SQLITE_VERSION_NUMBER >= 3003007
+    {"SQLITE_CREATE_VTABLE", SQLITE_CREATE_VTABLE},
+    {"SQLITE_DROP_VTABLE", SQLITE_DROP_VTABLE},
+#endif
+#if SQLITE_VERSION_NUMBER >= 3003008
+    {"SQLITE_FUNCTION", SQLITE_FUNCTION},
+#endif
+#if SQLITE_VERSION_NUMBER >= 3006008
+    {"SQLITE_SAVEPOINT", SQLITE_SAVEPOINT},
+#endif
+#if SQLITE_VERSION_NUMBER >= 3008003
+    {"SQLITE_RECURSIVE", SQLITE_RECURSIVE},
 #endif
     {(char*)NULL, 0}
 };