2
0
Эх сурвалжийг харах

Merge pull request #11 from bmx-ng/task/sqlite-update-3.44.2

Update to SQLite 3.44.2
Brucey 1 жил өмнө
parent
commit
e4c9bbc35f

+ 3 - 1
sqlite.mod/common.bmx

@@ -1,4 +1,4 @@
-' Copyright (c) 2007-2022 Bruce A Henderson
+' Copyright (c) 2007-2023 Bruce A Henderson
 ' All rights reserved.
 ' All rights reserved.
 '
 '
 ' Redistribution and use in source and binary forms, with or without
 ' Redistribution and use in source and binary forms, with or without
@@ -95,6 +95,8 @@ Const SQLITE_OPEN_FULLMUTEX:Int =        $00010000  ' Ok for sqlite3_open_v2()
 Const SQLITE_OPEN_SHAREDCACHE:Int =      $00020000  ' Ok for sqlite3_open_v2()
 Const SQLITE_OPEN_SHAREDCACHE:Int =      $00020000  ' Ok for sqlite3_open_v2()
 Const SQLITE_OPEN_PRIVATECACHE:Int =     $00040000  ' Ok for sqlite3_open_v2()
 Const SQLITE_OPEN_PRIVATECACHE:Int =     $00040000  ' Ok for sqlite3_open_v2()
 Const SQLITE_OPEN_WAL:Int =              $00080000  ' VFS only
 Const SQLITE_OPEN_WAL:Int =              $00080000  ' VFS only
+Const SQLITE_OPEN_NOFOLLOW:Int =         $01000000  ' Ok for sqlite3_open_v2()
+Const SQLITE_OPEN_EXRESCODE:Int =        $02000000  ' Extended result codes
 
 
 ' Externs
 ' Externs
 Extern
 Extern

+ 5 - 3
sqlite.mod/sqlite.bmx

@@ -1,4 +1,4 @@
-' Copyright (c) 2007-2022 Bruce A Henderson
+' Copyright (c) 2007-2023 Bruce A Henderson
 ' All rights reserved.
 ' All rights reserved.
 '
 '
 ' Redistribution and use in source and binary forms, with or without
 ' Redistribution and use in source and binary forms, with or without
@@ -31,13 +31,15 @@ about: An SQLite database driver for #Database.Core
 End Rem
 End Rem
 Module Database.SQLite
 Module Database.SQLite
 
 
-ModuleInfo "Version: 1.20"
+ModuleInfo "Version: 1.21"
 ModuleInfo "Author: Bruce A Henderson"
 ModuleInfo "Author: Bruce A Henderson"
 ModuleInfo "License: BSD"
 ModuleInfo "License: BSD"
-ModuleInfo "Copyright: Wrapper - 2007-2022 Bruce A Henderson"
+ModuleInfo "Copyright: Wrapper - 2007-2023 Bruce A Henderson"
 ModuleInfo "Copyright: SQLite - The original author of SQLite has dedicated the code to the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute the original SQLite code, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means."
 ModuleInfo "Copyright: SQLite - The original author of SQLite has dedicated the code to the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute the original SQLite code, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means."
 ModuleInfo "Modserver: BRL"
 ModuleInfo "Modserver: BRL"
 
 
+ModuleInfo "History: 1.21"
+ModuleInfo "History: Update to SQLite 3.44.2."
 ModuleInfo "History: 1.20"
 ModuleInfo "History: 1.20"
 ModuleInfo "History: Update to SQLite 3.38.5."
 ModuleInfo "History: Update to SQLite 3.38.5."
 ModuleInfo "History: 1.19"
 ModuleInfo "History: 1.19"

+ 1 - 1
sqlite.mod/sqlitehelper.c

@@ -1,5 +1,5 @@
 /*
 /*
-  Copyright (c) 2007-2022 Bruce A Henderson
+  Copyright (c) 2007-2023 Bruce A Henderson
   All rights reserved.
   All rights reserved.
  
  
   Redistribution and use in source and binary forms, with or without
   Redistribution and use in source and binary forms, with or without

Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 6544 - 1577
sqlite.mod/src/shell.c


Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 432 - 122
sqlite.mod/src/sqlite3.c


Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 451 - 119
sqlite.mod/src/sqlite3.h


+ 32 - 2
sqlite.mod/src/sqlite3ext.h

@@ -331,9 +331,9 @@ struct sqlite3_api_routines {
   const char *(*filename_journal)(const char*);
   const char *(*filename_journal)(const char*);
   const char *(*filename_wal)(const char*);
   const char *(*filename_wal)(const char*);
   /* Version 3.32.0 and later */
   /* Version 3.32.0 and later */
-  char *(*create_filename)(const char*,const char*,const char*,
+  const char *(*create_filename)(const char*,const char*,const char*,
                            int,const char**);
                            int,const char**);
-  void (*free_filename)(char*);
+  void (*free_filename)(const char*);
   sqlite3_file *(*database_file_object)(const char*);
   sqlite3_file *(*database_file_object)(const char*);
   /* Version 3.34.0 and later */
   /* Version 3.34.0 and later */
   int (*txn_state)(sqlite3*,const char*);
   int (*txn_state)(sqlite3*,const char*);
@@ -351,6 +351,21 @@ struct sqlite3_api_routines {
   int (*vtab_in)(sqlite3_index_info*,int,int);
   int (*vtab_in)(sqlite3_index_info*,int,int);
   int (*vtab_in_first)(sqlite3_value*,sqlite3_value**);
   int (*vtab_in_first)(sqlite3_value*,sqlite3_value**);
   int (*vtab_in_next)(sqlite3_value*,sqlite3_value**);
   int (*vtab_in_next)(sqlite3_value*,sqlite3_value**);
+  /* Version 3.39.0 and later */
+  int (*deserialize)(sqlite3*,const char*,unsigned char*,
+                     sqlite3_int64,sqlite3_int64,unsigned);
+  unsigned char *(*serialize)(sqlite3*,const char *,sqlite3_int64*,
+                              unsigned int);
+  const char *(*db_name)(sqlite3*,int);
+  /* Version 3.40.0 and later */
+  int (*value_encoding)(sqlite3_value*);
+  /* Version 3.41.0 and later */
+  int (*is_interrupted)(sqlite3*);
+  /* Version 3.43.0 and later */
+  int (*stmt_explain)(sqlite3_stmt*,int);
+  /* Version 3.44.0 and later */
+  void *(*get_clientdata)(sqlite3*,const char*);
+  int (*set_clientdata)(sqlite3*, const char*, void*, void(*)(void*));
 };
 };
 
 
 /*
 /*
@@ -669,6 +684,21 @@ typedef int (*sqlite3_loadext_entry)(
 #define sqlite3_vtab_in                sqlite3_api->vtab_in
 #define sqlite3_vtab_in                sqlite3_api->vtab_in
 #define sqlite3_vtab_in_first          sqlite3_api->vtab_in_first
 #define sqlite3_vtab_in_first          sqlite3_api->vtab_in_first
 #define sqlite3_vtab_in_next           sqlite3_api->vtab_in_next
 #define sqlite3_vtab_in_next           sqlite3_api->vtab_in_next
+/* Version 3.39.0 and later */
+#ifndef SQLITE_OMIT_DESERIALIZE
+#define sqlite3_deserialize            sqlite3_api->deserialize
+#define sqlite3_serialize              sqlite3_api->serialize
+#endif
+#define sqlite3_db_name                sqlite3_api->db_name
+/* Version 3.40.0 and later */
+#define sqlite3_value_encoding         sqlite3_api->value_encoding
+/* Version 3.41.0 and later */
+#define sqlite3_is_interrupted         sqlite3_api->is_interrupted
+/* Version 3.43.0 and later */
+#define sqlite3_stmt_explain           sqlite3_api->stmt_explain
+/* Version 3.44.0 and later */
+#define sqlite3_get_clientdata         sqlite3_api->get_clientdata
+#define sqlite3_set_clientdata         sqlite3_api->set_clientdata
 #endif /* !defined(SQLITE_CORE) && !defined(SQLITE_OMIT_LOAD_EXTENSION) */
 #endif /* !defined(SQLITE_CORE) && !defined(SQLITE_OMIT_LOAD_EXTENSION) */
 
 
 #if !defined(SQLITE_CORE) && !defined(SQLITE_OMIT_LOAD_EXTENSION)
 #if !defined(SQLITE_CORE) && !defined(SQLITE_OMIT_LOAD_EXTENSION)

Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно