drh
054889ec6d
Restructure the OS interface yet again. This time make the OsFile object
...
a virtual base class which is subclassed for unix, windows, and the crash
test simulator. Add the new file "os.c" for common os layer code. Move
all OS-specific routines into the sqlite3Os structure. (CVS 2795)
FossilOrigin-Name: bd8740d1aecba69e1b5d64d43db07e8ad8841f07
2005-11-30 03:20:31 +00:00
drh
392b3ddf2e
The crash test works now, at least on unix. Untested on windows. But it never
...
worked on windows before so if it still does not there is no big loss. I am
still troubled by the current design of the OS overloading mechanism. Expect
to see more changes. (CVS 2794)
FossilOrigin-Name: fa1d7ecfcc648fbe9fc6d92e080cf937bdc9c439
2005-11-29 19:56:32 +00:00
drh
a2eebaa43b
Make the build work on windows again. Ticket #1544 . (CVS 2793)
...
FossilOrigin-Name: 59bdca2552b2e5c09d5ca2b7a02ee34460139d7b
2005-11-29 19:50:24 +00:00
drh
1a23593dc0
The crash tests now compile, at least. But they get wrong results. The
...
problem is fundamental and suggests I need to completely rethink how the
new OS backend should work. (CVS 2792)
FossilOrigin-Name: 966bc68e1bf4e0cc88407871c162ee3014160415
2005-11-29 18:37:15 +00:00
drh
9cbe635219
Make the OsFile structure opaque with its internal structure known only to
...
the appropriate os_*.c implementation. Omit the os_unix.h and os_win.h
include files. The crash tests are broken by this patch. (CVS 2791)
FossilOrigin-Name: 058f31753871b16b40fe4048e3adcee411e0f87d
2005-11-29 03:13:21 +00:00
drh
9267bdcecd
Replace a call to sprintf() with sqlite3MPrintf() since on some embedded
...
platforms, sprintf() is busted. Need to go through and do similar replacements
elsewhere in the code. (CVS 2790)
FossilOrigin-Name: 1b4f2d89bbe833359cefcea580783fd92aa7b8ab
2005-11-28 12:36:35 +00:00
drh
9a5f7474e3
Disable the OR-clause optimization if it does not result in an index being
...
used that would not have been used otherwise. In other words, do not
convert OR clauses into an IN statement if it does not help the optimizer. (CVS 2789)
FossilOrigin-Name: 7e7cfce0f8ed2a6e04747736a2c68484f447cdfb
2005-11-26 14:24:40 +00:00
drh
54a167d1fe
Make sure left joins still work even when the OR clause optimization fires.
...
Ticket #1537 . (CVS 2788)
FossilOrigin-Name: cbbeb9de0019a0b81318158711590078fcb7e98a
2005-11-26 14:08:07 +00:00
drh
d86959f588
Remove some vestiges of the old OS_TEST driver. (CVS 2787)
...
FossilOrigin-Name: 008f676f20c690255e5cb8ae01df47c5094ac240
2005-11-26 03:51:18 +00:00
drh
18839217da
Add an OS method for making copies of file descriptors. This fixes the
...
crash tests. (CVS 2786)
FossilOrigin-Name: 57a674fc71512f11393b8eb595961ec9465ba4e1
2005-11-26 03:43:23 +00:00
drh
9c06c95309
Modify the OS layer so that I/O routines are called through a virtual function
...
table. The os_test.c module has been replaced by test6.c. The crash tests
are busted now and need to be fixed. (CVS 2785)
FossilOrigin-Name: 1f69aec285dd8e26bd739d5e44bb50fe03a9682a
2005-11-26 00:25:00 +00:00
danielk1977
aa2289f89c
Ensure a low system limit on the number of open files does not cause manydb.test to fail. (CVS 2784)
...
FossilOrigin-Name: dba2cc0d0e0c648c1a4798bc72913e3b19acba6e
2005-11-25 10:55:57 +00:00
danielk1977
4af65bb160
Add the compilation option SQLITE_DISABLE_DIRSYNC (CVS 2783)
...
FossilOrigin-Name: f9f5ecbb79f03ba8e7d6a036a562252319e82abc
2005-11-25 10:38:22 +00:00
danielk1977
d7c03f7485
Add the compilation option SQLITE_DISABLE_DIRSYNC (CVS 2782)
...
FossilOrigin-Name: f1298bb103aad46c737741d89d33c4c2904aec68
2005-11-25 10:38:22 +00:00
danielk1977
26c5d79f60
If SQLITE_DISABLE_LFS is defined, omit the bigfile tests. (CVS 2781)
...
FossilOrigin-Name: f882a516da18f45dbb668078d0d8240d930e1180
2005-11-25 09:01:23 +00:00
danielk1977
0964b23a99
Check the return code of full_fsync() when used to sync a directory fd. (CVS 2780)
...
FossilOrigin-Name: 84aae3b0ae7381710ff0bc9881cbde3559bb580b
2005-11-25 08:47:57 +00:00
drh
94c1f6f731
Preserve 64-bit last insert rowids across triggers. (CVS 2779)
...
FossilOrigin-Name: 4dd7cfaa587fd5f76a0b60db0f02d5f57f801564
2005-11-25 02:43:50 +00:00
drh
91636d58c0
The --enable-cross-thread-connect configuration option or the
...
-DSQLITE_ALLOW_XTHREAD_CONNECT compile-time option permits database
connections to be moved across threads. This will cause latch-ups
and failures on some linux systems such as RedHat-9. Do not use these
options if you want a portable build. (CVS 2778)
FossilOrigin-Name: 84aa4d58001ed943295f21f429c58c3c99b771d8
2005-11-24 23:14:00 +00:00
drh
22465ced29
Make sure sqliteInt.h is included before any system includes.
...
This is required for QNX. Ticket #1478 . (CVS 2777)
FossilOrigin-Name: ab76453553bea7c2371b35e7643a98967bb04582
2005-11-24 22:33:05 +00:00
drh
fa3b19ef3d
Reduce the number of distinct token symbols in the parser so that the parser
...
can store tokens in a single byte and thus be smaller in size. (CVS 2776)
FossilOrigin-Name: 2dfc9863919c9eb1fd1064ab2817d752dd7f9293
2005-11-24 22:22:29 +00:00
drh
31beae983e
Comment changes. No changes to code. (CVS 2775)
...
FossilOrigin-Name: 786e23b2959c6103bfc0b45535afc49f22bc8a67
2005-11-24 14:34:36 +00:00
drh
3a4a2d40e1
Fix a comment in btree.c. No code changes. (CVS 2774)
...
FossilOrigin-Name: 0d8bd133a7530fb56ecb742472865f5a72a0ea5e
2005-11-24 14:24:28 +00:00
drh
3eda040be9
Fix incorrect type conversions when copying from a table into itself.
...
Ticket #1536 . (CVS 2773)
FossilOrigin-Name: a2e55a3828d74d78b0b76f956a537a0d906f3191
2005-11-24 13:15:32 +00:00
drh
32daab6cb0
Less verbose output when EXPLAIN QUERY PLAN identifies use of the primary key. (CVS 2772)
...
FossilOrigin-Name: 5045f09933f57e4ae897969710b19d09b7af6022
2005-11-21 12:48:24 +00:00
drh
36d649303f
The EXPLAIN QUERY PLAN now identifies when tables use the integer primary key. (CVS 2771)
...
FossilOrigin-Name: 80721e2c9033abb2e9eed32892c4e486c293e1fa
2005-11-21 12:46:27 +00:00
drh
4efc083f57
Fix a problem with the sorting of literals in a compound query. Ticket #1501 . (CVS 2770)
...
FossilOrigin-Name: b3882b434a1ef7d8d636c7c5917b9e8f0d2952fb
2005-11-16 13:47:50 +00:00
drh
7e56e71125
Do not allow aggregate functions in a WHERE clause. Ticket #1514 . (CVS 2769)
...
FossilOrigin-Name: bb866ed880c33ec9ce6ded8ebdbb459fedf9c257
2005-11-16 12:53:15 +00:00
drh
ed2df7fb68
Avoid unnecessary strlen() calls in the OP_String opcode. (CVS 2768)
...
FossilOrigin-Name: 2e195e96bcbad104da09ebe6cef617e0e9ef1884
2005-11-16 04:34:32 +00:00
drh
a0943e6666
Fix a bug in UTF-16 handling introduced by the previous check-in. (CVS 2767)
...
FossilOrigin-Name: 25fa16a2e1f324790f4b293df5d7142575034428
2005-11-15 02:14:00 +00:00
drh
8a51256c0c
Create separate affinities for INTEGER and REAL. (CVS 2766)
...
FossilOrigin-Name: ce06c123d0c5663dbaf263c2e0aaf5d9cdeb2ccd
2005-11-14 22:29:05 +00:00
drh
a8f1914b72
Fix documentation typo. (CVS 2765)
...
FossilOrigin-Name: c9b413ea22d1da926621670b903c7a683921eef0
2005-11-14 11:51:45 +00:00
drh
fd405314d3
About 0.5KiB of additional compression in the parser tables. (CVS 2764)
...
FossilOrigin-Name: f39974ebd81f274dc4cf6cf94e6e87ee7b4a0814
2005-11-06 04:06:59 +00:00
drh
152410fade
Work around a bug in MSVC++. Ticket #1513 . (CVS 2763)
...
FossilOrigin-Name: 6331860e7754be6e0d2a484d66427947c0781dd6
2005-11-05 15:11:22 +00:00
drh
8a9f38feb2
Remove a C++-ism that slipped into the code during the recent CHECK
...
enhancements. Ticket #1513 . (CVS 2762)
FossilOrigin-Name: e66289b52f56c8242aa264a9365c834cd820e988
2005-11-05 15:07:55 +00:00
drh
ada354db0e
Improved table compression in lemon reduces the overall library size
...
by about 1.5KiB. (CVS 2761)
FossilOrigin-Name: 86ac11476962727d2d40b62ce87d689c01969537
2005-11-05 15:03:59 +00:00
drh
c9ac5caa45
VACUUM works even on an empty database. Ticket #1512 . (CVS 2760)
...
FossilOrigin-Name: 1b6bf4188e8ebf55cf1972b7081f6d31bf525555
2005-11-04 22:03:30 +00:00
drh
c01be744bc
sqlite3_column_int() and similar routines return 0 or 0.0 on an
...
out-of-memory condition, not some mysterious error code. (CVS 2759)
FossilOrigin-Name: 7780f5e9d504926f11bd0662c03c88c76fb1d416
2005-11-03 14:29:55 +00:00
drh
4284fb0778
Prohibit parameters in CHECK constraint expressions. (CVS 2758)
...
FossilOrigin-Name: bb94ef64b227839a0ef4156985e2f5a061a78e2c
2005-11-03 12:33:28 +00:00
drh
0cd2d4c9a1
Add the ignore_check_constraints pragma. VACUUM works even on a database
...
that contains table entries that violate check constraints. (CVS 2757)
FossilOrigin-Name: be83bfee0211396a0038ffb125897199bea9a73f
2005-11-03 02:15:02 +00:00
drh
06f6541e2f
Disallow subqueries in CHECK constraints. (CVS 2756)
...
FossilOrigin-Name: db27afc4cdc5b51c1fa0e83dbd6d4a4a69c5b642
2005-11-03 02:03:13 +00:00
drh
6275b88b9e
CHECK constraints that evaluate to NULL pass. (CVS 2755)
...
FossilOrigin-Name: 55b314a22c69fbe129b024e953f3230b67eaaa87
2005-11-03 01:22:30 +00:00
drh
ffe07b2dc1
First cut at supporting CHECK constraints. Everything appears to work,
...
but much more testing is needed as well as documentation. (CVS 2754)
FossilOrigin-Name: 2313d912baeca0fd516d524f16708953de483729
2005-11-03 00:41:17 +00:00
drh
8df447f0e6
Omit the SQLITE_AFF_INTEGER type affinity. All numeric values are now
...
of type real, though an integer representation is still sometimes used
internally for efficiency. (CVS 2753)
FossilOrigin-Name: e0d6f61c7de2c03b8fd17ef37cf1a0add36ee618
2005-11-01 15:48:24 +00:00
drh
b127612933
Fix the shift operators so that they work with 64-bit quantities. (CVS 2752)
...
FossilOrigin-Name: 0d3357b5f65887f7db03db2ae021f28f480f90e4
2005-10-29 15:48:30 +00:00
drh
eef8b55832
Report an error if the input SQL contains an unterminated string.
...
Ticket #1497 . (CVS 2751)
FossilOrigin-Name: c9c476dd836c49255eabc6cce83064974c079ce3
2005-10-23 11:29:40 +00:00
drh
d9cb6ac02f
Changes to prevent various compiler warnings. (CVS 2750)
...
FossilOrigin-Name: e261b8b09a529a3e67dc27c3b83b660bcb32e195
2005-10-20 07:28:17 +00:00
drh
b37df7b928
Attempt to fix the SQLite core so that no floating point operations are used
...
anywhere if SQLITE_OMIT_FLOATING_POINT is defined at compile-time. This
is useful to people who use SQLite on embedded processors that lack
floating point support. (CVS 2749)
FossilOrigin-Name: a0bdb584680ce6400d9e8c57db9d91197cc7b776
2005-10-13 02:09:49 +00:00
drh
54414bb449
Make the default TEMP_STORE=1 (TEMP tables stored on disk) in the configure
...
script. (CVS 2748)
FossilOrigin-Name: 9753af53494a14f7300f92f3d94e4ceb55619529
2005-10-10 00:05:50 +00:00
drh
ec7429ae27
More efficient handling of the LIMIT clause. Scalar subqueries and EXISTS
...
on compound SELECT statements now working properly. Ticket #1473 . (CVS 2747)
FossilOrigin-Name: edca8913ca012fc0c17343a27f819de95147b1bd
2005-10-06 16:53:14 +00:00
drh
23cc57f6a3
Check-in (2744) as incomplete and broke pragma integrity_check. This
...
completes the change and fixes the problem. (CVS 2746)
FossilOrigin-Name: 4862eaafd875eb1069076864c7cad600a76620c7
2005-10-06 13:59:26 +00:00