drh
eba1a1ebee
"extern" prototypes cause problems for the Digital Mars compiler. So
...
remove them. Ticket #2502 . (CVS 4156)
FossilOrigin-Name: f35fbf8070d770a603960b2a2afdeae91574ed5f
2007-07-13 10:26:08 +00:00
danielk1977
612642de32
Fix for #2497 . Set the database error code to the return value of sqlite3_step(). (CVS 4155)
...
FossilOrigin-Name: b01fda5f50e40b6122faf169c44486bde7ffe16c
2007-07-12 13:18:05 +00:00
pweilbacher
d8e9b6238e
Fix compilation warnings shown when using strict GCC options for os_os2.c. (CVS 4154)
...
FossilOrigin-Name: 22277b7e1b3eb1678280de5d49a6613908ab4bff
2007-07-03 23:37:09 +00:00
danielk1977
2ac2762f37
Fix a memory leak in shell.c. Reported on the mailing list. This has only been informally tested. (CVS 4153)
...
FossilOrigin-Name: a008905b39e7d4cd5b39db4906eb3b678e3ee8b7
2007-07-03 05:31:16 +00:00
drh
1c55ba094a
Fix a comment typo reported on the mailing list. (CVS 4152)
...
FossilOrigin-Name: 25e6df9cdd7d0cbb2bdee9ce76806cfd08314212
2007-07-02 19:31:27 +00:00
danielk1977
ab9749ebb9
Modify handling of SQLITE_SCHEMA in fts2 code. An SQLITE_SCHEMA error may cause SQLite to reload the internal schema, deleting and recreating v-table objects. So the sqlite3_vtab structure can be deleted out from under a v-table implementation. (CVS 4151)
...
FossilOrigin-Name: dee1a0fd28e8341af6523ab0c5628b671d7d2811
2007-07-02 10:16:49 +00:00
drh
12e8dcfbf6
Remove an unnecessary temporary variable for clarity of presentation in
...
a loop that GCC 4.2.0 is miscompiling. Ticket #2469 . GCC 4.2.0 miscompiles
this loop regardless of whether or not the temporary variable is used, but
by removing the variable, we hope to make it easier to explain the problem
to GCC maintainers. The error only appears if -ftree-vrp is used (which
is turned on by -O2). (CVS 4150)
FossilOrigin-Name: 35ae398bd37e4abbe362b0b780fc51153145b43d
2007-07-01 21:18:40 +00:00
pweilbacher
503028d61a
Change OS/2 version of sqlite3Os2FullPathname() for cross-compiler compatibility:
...
- allocate zBuff on demand (restricted stack space on old compilers)
- 2 bytes in zDrive in include '\0'
- pass drive number to DosQueryCurrentDir() instead of 0 to make EMX work
- zFull does not need to be preallocated (CVS 4149)
FossilOrigin-Name: cc2105176563c352a6dccef89a429a76b6f3adf5
2007-07-01 15:41:02 +00:00
pweilbacher
2b9ca8d3e4
Including os2safe.h from os_os2.c is no longer necessary (now that it's including from os.h) (CVS 4148)
...
FossilOrigin-Name: 6432bbe1c1db1d31bd0057d99a9d6b6a428d8ffc
2007-06-30 16:30:39 +00:00
pweilbacher
3f61bc79ae
old emx/gcc sets __EMX__ (with double underscores) as builtin #define (CVS 4147)
...
FossilOrigin-Name: d69204fec718a5d6d95351ee7a0c068a1c59222d
2007-06-30 15:24:37 +00:00
drh
e78669b6b8
Set FD_CLOEXEC on all open files under Unix. Ticket #2475 . (CVS 4146)
...
FossilOrigin-Name: f1e5fed8eb0fb92bd0f040666c017850afe3cf9f
2007-06-29 12:04:26 +00:00
drh
6bd00bfda7
Add a test case to verify that ticket #2470 has been fixed. (CVS 4145)
...
FossilOrigin-Name: b3f442698e01ad55666703025c4457445f2efc9b
2007-06-27 23:52:18 +00:00
danielk1977
5c55886059
Test error handling when renaming fts2 tables. (CVS 4144)
...
FossilOrigin-Name: 57840eba6a4380a0b71dc9514cdda41e2c455bb0
2007-06-27 17:09:24 +00:00
danielk1977
c033b64276
Implement xRename() for fts2 so that it is possible to rename fts2 tables. (CVS 4143)
...
FossilOrigin-Name: 488474fde753c5a7a14ed8f2fad7f16efd236491
2007-06-27 16:26:07 +00:00
danielk1977
182c4ba979
Allow ALTER TABLE on virtual tables. (CVS 4142)
...
FossilOrigin-Name: 37d1f9f37ea9d2e8a4dbe0ec67c0d6eb7fcc5f3f
2007-06-27 15:53:34 +00:00
vapier
c3d56d1509
respect $LDFLAGS from env/configure (CVS 4141)
...
FossilOrigin-Name: 9c13fc0f4bf22c8e05b11ef5feaaf07d8a8b3f01
2007-06-27 15:01:45 +00:00
danielk1977
b7865fbc53
Fix for compiling with OMIT_VIRTUALTABLE defined. (CVS 4140)
...
FossilOrigin-Name: 850822e2904bc340afd0b7535ef51fbdf9e1f486
2007-06-27 11:10:03 +00:00
drh
a6b81bad55
Fix typo in comments of the sqlite.h.in header file - comments from which
...
documentation is automatically extracted and generated. Ticket #2468 . (CVS 4139)
FossilOrigin-Name: 53b526203c22961447b9c1cebbd885ecc8bc3e09
2007-06-27 10:21:38 +00:00
drh
5db828180c
Make sure auto_vacuum is turned off before running the tests in pragma2.test. (CVS 4138)
...
FossilOrigin-Name: fc85c8aa160cc46419b9ce83d9eb47970c67118a
2007-06-27 10:20:00 +00:00
drh
0e8003dff6
Set the connection error code when sqlite3_blob_read() or
...
sqlite3_blob_write() fail. Ticket #2464 . (CVS 4137)
FossilOrigin-Name: 3bd990be3cb8a74be9eaa8d5710852be6733cb58
2007-06-27 00:36:13 +00:00
drh
6d31df30d8
Update the FAQ to describe how moving sqlite3 handles across threads is
...
not safe with SQLITE_ENABLE_MEMORY_MANAGEMENT. Tickets #2357 and #2463 . (CVS 4136)
FossilOrigin-Name: 2640f518deba1d196201fac903ec4d3ab26d4bb3
2007-06-27 00:08:39 +00:00
drh
985e0c63fc
Make sure the TCL bindings always use Tcl_GetWideIntFromObj() even if the
...
reported type is "int" because on x86-64 and "int" type is 64-bits.
Ticket #2465 . (CVS 4135)
FossilOrigin-Name: 5c93324b937b4d8394b0eb7d7fe74f7965623cbe
2007-06-26 22:55:37 +00:00
drh
99bcd30bfb
Fix a test case so that it (hopefully) works on x86-64. Ticket #2465 . (CVS 4134)
...
FossilOrigin-Name: 3daf7cae18ae2ee6404f770e69e4cd0c715615e5
2007-06-26 22:42:56 +00:00
drh
2f9ad1b47d
Remove vestigal code from Makefile.linux-gcc. Ticket #2466 . (CVS 4133)
...
FossilOrigin-Name: 338c18791006bac3709410087316700aad3b332f
2007-06-26 22:10:12 +00:00
danielk1977
9ff802627a
Reorganize comments in fts2_tokenizer.h. No code changes. (CVS 4132)
...
FossilOrigin-Name: b331e30395e9fc90abe40ab802972a67648cf48e
2007-06-26 12:54:07 +00:00
danielk1977
05fdd6c055
Use (((i64)1)<<63) instead of just (1<<63) to compute the most negative 64-bit integer. (CVS 4131)
...
FossilOrigin-Name: be2570c061e1e751d1a46450bd1186549146526e
2007-06-26 12:52:33 +00:00
danielk1977
42d4ef2acc
Fix for #2444 : Avoid SIGFPE on 64-bit platforms when evaluating expressions like ((1<<63)/-1). (CVS 4130)
...
FossilOrigin-Name: c6dfd9e43449b0b3528281d9e2e4971c6ba86ab5
2007-06-26 11:13:25 +00:00
danielk1977
08ada518ff
Remove the unused EXTSRC variable from the non-configure makefile. (CVS 4129)
...
FossilOrigin-Name: bbdcf372c6f2144a62fba742b3f4bd6b2fe58593
2007-06-26 10:56:40 +00:00
danielk1977
4877ef2aae
Fix an unitialized variable in fts2. (CVS 4128)
...
FossilOrigin-Name: c349cf942534357955f80fc2aa8c96206af97b78
2007-06-26 10:55:01 +00:00
danielk1977
034ca14f81
Allow virtual tables to mark columns as 'hidden'. Hidden columns do not show
...
up in "*" expansion, the implicit column list of an INSERT statement, or the results of a "PRAGMA table_info" statement. (CVS 4127)
FossilOrigin-Name: 7f887a6a00fdd6efc3740bd8a1731bb1abde087c
2007-06-26 10:38:54 +00:00
drh
8605761506
Try to work around an MSVC compiler bug. Ticket #2457 . (CVS 4126)
...
FossilOrigin-Name: 4a7079a19ab5c36ed88cf597c21bf9f8b63bdf86
2007-06-26 01:04:48 +00:00
drh
26b0fc0bc5
Modify the amalgamation generator to identify every API using the
...
SQLITE_API macro which is normally defined to nothing but which can
be overridden on the compiler command-line to be "static" if desired.
Ticket #2453 . (CVS 4125)
FossilOrigin-Name: 474a52347d454ad499d7a78c88eb995c9d3254d1
2007-06-26 00:52:39 +00:00
drh
b6a9eceab2
Change the name of sqlite3_atoi64 back to sqlite3Atoi64 so that it is clearly
...
and internal API. Modify the amalgamation to use a macro SQLITE_PRIVATE
instead of the keyword "static" so the macro can be overridden to by nothing. (CVS 4124)
FossilOrigin-Name: 96190cf13dd7219f483308fea92d703328aac4c7
2007-06-26 00:37:27 +00:00
drh
217f49093c
Rework the string to integer conversion logic to address tickets
...
#2344 and #2454 . (CVS 4123)
FossilOrigin-Name: 5b3a490649ab88c168e3e5bf2efbc7f61b1b954d
2007-06-25 17:28:00 +00:00
danielk1977
c9cf6e3d31
Fix for #2445 . A bug in the lookupName() logic that could cause a crash when a WHERE clause used an alias to refer to an expression in the result-set of the SELECT, and that expression was itself a reference to a table column. (CVS 4122)
...
FossilOrigin-Name: 044ca1c72a8f4632dc2e6a94690d164d3560ee38
2007-06-25 16:29:33 +00:00
danielk1977
576d3db541
Modify the non-configure build system to make it easier to build the library with the fts2 or icu extensions linked in. (CVS 4121)
...
FossilOrigin-Name: 02b23c4394da7efb82e9318146f10818b0f68b1f
2007-06-25 14:28:48 +00:00
drh
397aa141ed
Put #ifdefs in fts2_tokenizer so that the build works even when FTS2
...
is omitted. Add the SQLite blessing to the header comments on all FTS2
source files. (CVS 4120)
FossilOrigin-Name: c795e6fd8f01bcbc1967062632c13d4952abf4d8
2007-06-25 13:50:03 +00:00
drh
5665b3ea44
All the use of MySQL-style quoting in the FTS modules. Ticket #2446 . (CVS 4119)
...
FossilOrigin-Name: 3be2a6d1c342454d93b05c38f3d9a960ab15dae2
2007-06-25 12:49:05 +00:00
danielk1977
46760820a1
Add a test that calls fts2_tokenizer() with an argument set via C code. (CVS 4118)
...
FossilOrigin-Name: fbcf2d75cd2b88d175c122477aa483f0771870e5
2007-06-25 12:05:40 +00:00
danielk1977
f86643b32f
Add some tests for the fts2 icu tokenizer. (CVS 4117)
...
FossilOrigin-Name: b79ced3e0a26b0db13613073c847c2d2ba7e174e
2007-06-25 11:24:38 +00:00
danielk1977
24e1afa222
Add some documentation for user-defined fts2 tokenizers. (CVS 4116)
...
FossilOrigin-Name: 5a9eee86587219a68655d548864d129edec969ae
2007-06-25 09:52:31 +00:00
danielk1977
27b1f95f08
Make the auto_vacuum mode peristent in all cases. (CVS 4115)
...
FossilOrigin-Name: 5b0408ddd0f1c825f402d0f5a3088a61b5ecd2c3
2007-06-25 08:16:58 +00:00
danielk1977
d62e76c792
Fix for #2451 . Code comment changes only. (CVS 4114)
...
FossilOrigin-Name: bc61dcbf64af56d4a1394c8ff46e91245dc16d15
2007-06-24 16:11:03 +00:00
danielk1977
418899a359
Make setting "PRAGMA auto_vacuum = incremental" persistent if it is executed before the database file is created. (CVS 4113)
...
FossilOrigin-Name: c666fad151f25ab8365c497cd0967f4a5a2adb90
2007-06-24 10:14:00 +00:00
danielk1977
180b56a1bb
Add the "(database.)freelist_count" PRAGMA. For querying the size of the
...
database free-list. (CVS 4112)
FossilOrigin-Name: 1fb4251a707d0b79d250d6ea2022913b371d5f14
2007-06-24 08:00:42 +00:00
danielk1977
f3b863ed07
When expanding '*' in the result set of a SELECT, quote the expanded identifiers. Fix for #2450 . (CVS 4111)
...
FossilOrigin-Name: d5b7224f37db1729dd042d48765d7a79247e1bde
2007-06-24 06:32:17 +00:00
pweilbacher
53b4bd3252
fix linking failure on OS/2 that happens with the amalgamation and the high memory option enabled (CVS 4110)
...
FossilOrigin-Name: f35e20e19633d7b114fdf145820ca5d61b5aa925
2007-06-22 20:17:37 +00:00
pweilbacher
691902e7d6
fix compilation failure on OS/2 with the amalgamation (CVS 4109)
...
FossilOrigin-Name: 12327ca049e62922bfb3c2a14e42554fd58265e8
2007-06-22 20:04:36 +00:00
danielk1977
832a58a68c
Extend fts2 so that user defined tokenizers may be added. Add a tokenizer that uses the ICU library if available. Documentation and tests to come. (CVS 4108)
...
FossilOrigin-Name: 68677e420c744b39ea9d7399819e0f376748886d
2007-06-22 15:21:15 +00:00
drh
bf2564f612
Clarify documentation of the column metadata APIs. Make sure that the
...
new documentation claims are tested. (CVS 4107)
FossilOrigin-Name: 2dafe08a91b5328a9d0df5ab29c3ff2d94ad5f6f
2007-06-21 15:25:05 +00:00