]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Further #ifdef changes in speedtest1.c in order to support SQLite back to
authordrh <drh@noemail.net>
Thu, 18 Jun 2015 15:26:09 +0000 (15:26 +0000)
committerdrh <drh@noemail.net>
Thu, 18 Jun 2015 15:26:09 +0000 (15:26 +0000)
version 3.3.9 and perhaps even earlier.

FossilOrigin-Name: 9246eca54adaee571dab0c066afaa604fcf9c44f

manifest
manifest.uuid
test/speedtest1.c

index 4565c70b6369293552f4f2ca63575ab686c67f2a..806cfda95aa5237172983cddf0078862f1886a46 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Pervent\sthe\slikelihood()\sfunction\sfrom\smoving\sON\sclause\sterms\sof\sa\sLEFT\sJOIN\ninto\sthe\sWHERE\sclause.\nFix\sfor\sticket\s[5f60b11fc8e23490e2]
-D 2015-06-18T14:32:51.732
+C Further\s#ifdef\schanges\sin\sspeedtest1.c\sin\sorder\sto\ssupport\sSQLite\sback\sto\nversion\s3.3.9\sand\sperhaps\seven\searlier.
+D 2015-06-18T15:26:09.205
 F Makefile.arm-wince-mingw32ce-gcc d6df77f1f48d690bd73162294bbba7f59507c72f
 F Makefile.in 1063c58075b7400d93326b0eb332b48a54f53025
 F Makefile.linux-gcc 91d710bdc4998cb015f39edf3cb314ec4f4d7e23
@@ -928,7 +928,7 @@ F test/speed3.test d32043614c08c53eafdc80f33191d5bd9b920523
 F test/speed4.test abc0ad3399dcf9703abed2fff8705e4f8e416715
 F test/speed4p.explain 6b5f104ebeb34a038b2f714150f51d01143e59aa
 F test/speed4p.test 0e51908951677de5a969b723e03a27a1c45db38b
-F test/speedtest1.c 613e7f6064123068049ffd9b74a60b3c8d51e8ab
+F test/speedtest1.c f42fd04a34a0c1dc289cbe536ef62d706227a736
 F test/spellfix.test 24f676831acddd2f4056a598fd731a72c6311f49
 F test/sqldiff1.test 8f6bc7c6a5b3585d350d779c6078869ba402f8f5
 F test/sqllimits1.test e05786eaed7950ff6a2d00031d001d8a26131e68
@@ -1286,7 +1286,7 @@ F tool/vdbe_profile.tcl 67746953071a9f8f2f668b73fe899074e2c6d8c1
 F tool/warnings-clang.sh f6aa929dc20ef1f856af04a730772f59283631d4
 F tool/warnings.sh 48bd54594752d5be3337f12c72f28d2080cb630b
 F tool/win/sqlite.vsix deb315d026cc8400325c5863eef847784a219a2f
-P a84d1004cbee67f2b8ba1fd201e43af49ea67c1b
-R 530ba24618abbbf122ded3eb71849514
+P ed96e14adce4a4f94cc6838c46bc97937c4cb72a
+R 4e77e4d1b1f5f9af9315f930f1585b67
 U drh
-Z 790eb5c98101c017e4fe81f6e31f872f
+Z 4a2d5290228b5807450e51ccee479c2e
index 4391ae8b19a8d872e6ed34870785e326512b6714..e752e4c0609cb9c3a7ca3872b3ea1fce432ec1db 100644 (file)
@@ -1 +1 @@
-ed96e14adce4a4f94cc6838c46bc97937c4cb72a
\ No newline at end of file
+9246eca54adaee571dab0c066afaa604fcf9c44f
\ No newline at end of file
index 9a90f5b6ffbe29f8f73587c57d4287d6909783a1..db343d81ffd198a00f82f26d3589dd53a4e5bcff 100644 (file)
@@ -43,6 +43,9 @@ static const char zHelp[] =
 #include <string.h>
 #include <ctype.h>
 
+#if SQLITE_VERSION_NUMBER<3005000
+# define sqlite3_int64 sqlite_int64
+#endif
 #ifdef SQLITE_ENABLE_OTA
 # include "sqlite3ota.h"
 #endif
@@ -143,6 +146,9 @@ static int integerValue(const char *zArg){
 
 /* Return the current wall-clock time, in milliseconds */
 sqlite3_int64 speedtest1_timestamp(void){
+#if SQLITE_VERSION_NUMBER<3005000
+  return 0;
+#else
   static sqlite3_vfs *clockVfs = 0;
   sqlite3_int64 t;
   if( clockVfs==0 ) clockVfs = sqlite3_vfs_find(0);
@@ -157,6 +163,7 @@ sqlite3_int64 speedtest1_timestamp(void){
     t = (sqlite3_int64)(r*86400000.0);
   }
   return t;
+#endif
 }
 
 /* Return a pseudo-random unsigned integer */