drh
38c67c3683
Improved documentation of SQLITE_THREADSAFE and sqlite3_column_text() and
...
evidence marks for each.
FossilOrigin-Name: 0d7a53894866e536616e78473d253a9e9c29b1bc
2010-09-08 02:30:27 +00:00
drh
ee9ff672da
Documentation enhancements for sqlite3_db_status(). Evidence marks on
...
the SQL function call intrface.
FossilOrigin-Name: f06c7b1973d64a6a1a1db2b44df2a4eb0ece0077
2010-09-03 18:50:48 +00:00
drh
a3388cc5b0
Fix typos in comments. No code or logic changes.
...
FossilOrigin-Name: 15c294ca051ed8b5078e7ac9a969b0f9358d9184
2010-07-30 16:54:25 +00:00
drh
4a466d3ef3
Fix up a branch in sqlite3ValueFromExpr() so that we can achieve full
...
branch test coverage regardless of whether or not SQLITE_ENABLE_STAT2 is
used.
FossilOrigin-Name: af471ed79f539ff495f6d4cb3b69188c8af7ae3d
2010-06-25 14:17:58 +00:00
dan
5fea90762a
Change a condition in sqlite3VdbeMemShallowCopy() to avoid accessing an unitialized variable (doing so was not dangerous, but caused a valgrind error).
...
FossilOrigin-Name: 4793c381c6ff4e4d25433298be30028721a9cb67
2010-03-05 18:46:12 +00:00
drh
4b5db5ac9c
Redesign the string to numeric value caster so that it is more likely to
...
work on unusual floating point hardware.
FossilOrigin-Name: 8bb1104c6f02c88eb09ed345890be71dee099485
2010-01-21 01:53:07 +00:00
drh
52d14521fa
Make the doubleToInt64() routine a pass-through when using OMIT_FLOATING_POINT.
...
FossilOrigin-Name: 417167182efaa1da74008952137de3e00c23494e
2010-01-13 15:15:40 +00:00
drh
7ec5ea942e
Make the sqlite3_result_double() interface work the same as
...
sqlite3_result_int64() when SQLITE_OMIT_FLOATING_POINT is defined.
FossilOrigin-Name: 61df5986600b6c9e6d5c42efc0067a27fe54251f
2010-01-13 00:04:13 +00:00
drh
0abaefefd6
Remove an obsolete (and incorrect) comment from sqlite3MemCompare().
...
No changes to code.
FossilOrigin-Name: c15b70b3aefc399dae1df5bb721530f0e2b7887a
2009-11-11 23:48:22 +00:00
drh
c81c11f62c
Remove the obsolete "$Id:$" RCS identifier strings from the source code.
...
FossilOrigin-Name: f6c045f649036958078cb15cd9d5453680c82b0c
2009-11-10 01:30:52 +00:00
drh
481aa74e21
Recover an ophaned branch that resulted from some ill-advised "shunning".
...
This check-in should be identical to [bd443f39a9] except that it should
be on the trunk.
FossilOrigin-Name: 38eaf1ab6e05161e6dc7cd69e942aeca16548c45
2009-11-05 18:46:02 +00:00
dan
937d0dea4f
Add the experimental sqlite3_reoptimize() API.
...
FossilOrigin-Name: 9bd6f3d8864d422fe42074688b191915b27ad8ea
2009-10-15 18:35:38 +00:00
drh
345ba7db59
Additional simplifications in support of structural testing.
...
FossilOrigin-Name: 4ab8c841f818326b0b04b95e3edd828c77f109d9
2009-09-08 13:40:16 +00:00
dan
165921a742
Changes to support recursive triggers.
...
FossilOrigin-Name: 9b9c19211593d5ff7b39254a29c284560a8bcedb
2009-08-28 18:53:45 +00:00
drh
3995c26d16
Make sure that sqlite3ValueFromExpr() sets the "type" field of the
...
sqlite3_value object correctly when the value is a floating point
number.
FossilOrigin-Name: 2467eb68ace46f6185fd14758446a5c887caffe3
2009-08-19 22:14:17 +00:00
dan
fcd4a150e2
Change the way an Expr that has been converted to TK_REGISTER stores its original opcode. The previous method, overloading Expr.iColumn, did not work in all cases.
...
FossilOrigin-Name: 71ea9d0e148fbd3d633651c61c81044e37cf88b9
2009-08-19 17:17:00 +00:00
dan
02fa469619
First version of sqlite_stat2 (schema forces exactly 10 samples).
...
FossilOrigin-Name: dd96bda2a85c1d94fb4a0bf5f27e2977f7f7e42e
2009-08-17 17:06:58 +00:00
drh
e74871ac06
Work around an over-zealous optimization in GCC 4.3.3. See
...
CVSTrac ticket #4027 .
FossilOrigin-Name: 9cbe3654055a78c09ea1ecd5dc599bcd888b57e3
2009-08-14 17:53:39 +00:00
drh
97e35a9378
Fix a typo on a comment in sqlite3VdbeIntegerAffinity().
...
FossilOrigin-Name: b5a709d3609d40a6e5ef77f9889077d7395d3d26
2009-08-13 15:13:52 +00:00
drh
5d1a872ab6
Simplifications to btree.c in support of coverage testing. (CVS 6923)
...
FossilOrigin-Name: 375fd6f9c54fa5aa8cfae30845c7bfc0ec49e8fa
2009-07-22 18:07:40 +00:00
danielk1977
f16c62464d
Add some code to sqlite3VdbeMemSetZeroBlob() so that it works (less efficiently) even when OMIT_INCRBLOB is defined. Ticket #3977 . (CVS 6906)
...
FossilOrigin-Name: f5f7259d811ce8c2bf0bc64128256c4cd95f676a
2009-07-18 14:36:23 +00:00
drh
4c8555fd47
Improved handling of oversize string and blob errors. Other simplifications
...
in support of full coverage testing. (CVS 6813)
FossilOrigin-Name: 8b34076668f0f712de0fbbe9bc2e68d42797e1b2
2009-06-25 01:47:11 +00:00
drh
9a65f2cd7d
Simplifications to vdbe.c and it service routines in support of coverage
...
testing. (CVS 6799)
FossilOrigin-Name: 308f2e61520ac7440700d93ca5bab4a844f2dc17
2009-06-22 19:05:40 +00:00
drh
94c3a2b16f
Use caution to avoid integer overflow when doing real to integer affinity
...
operations. Ticket #3922 . (CVS 6776)
FossilOrigin-Name: 392559465d499f491907ef7f42d37a1a6c699511
2009-06-17 16:20:04 +00:00
danielk1977
4b0aa4cf3e
Workaround the need for internal API sqlite3BtreeCursorDb(). It was only being used for an assert() statement, which can be done differently. (CVS 6683)
...
FossilOrigin-Name: 5904af6e6df3effdaaa30e7cf96ee316fc09b28d
2009-05-28 11:05:57 +00:00
drh
33e619fc1c
Additional refinements to Expr handling. Restore compression of trigger
...
expressions. Change Expr.zToken to Expr.u.zToken and added Expr.u.iValue.
Remove an unnecessary ExprDup from CHECK constraint processing. And so forth. (CVS 6682)
FossilOrigin-Name: 4ac2bdfbb4230b6ceaae87e738fa61036bbe03cb
2009-05-28 01:00:55 +00:00
drh
b7916a78ff
Simplifications to the Expr object: Remove Expr.span completely and convert
...
Expr.token into a char* Expr.zToken. Also simplify the Token object by
removing the Token.dyn and Token.quoted fields. (CVS 6681)
FossilOrigin-Name: 7cb1c3ba0759539cb035978fdaff6316775986f3
2009-05-27 10:31:29 +00:00
drh
e3b9bfe6ab
Make sure the default value on a column added using ALTER TABLE has the
...
correct encoding. Ticket #3838 . (CVS 6603)
FossilOrigin-Name: 7f89a860b7cd0993c36a8b0482c2bac950a875d6
2009-05-05 12:54:50 +00:00
drh
24fb627afa
Record within the Token structure itself whether or not the token has
...
been dequoted. This steals one bit from the length of a token and
thus limits the size of tokens to 1GiB. (CVS 6589)
FossilOrigin-Name: 12bcb03d9b9e1a31c1a3c67cbb4263cc0af2f3d0
2009-05-01 21:13:36 +00:00
drh
1b26c7ccfa
Remove the rowhash object from the code. Rowset now fills its role. (CVS 6535)
...
FossilOrigin-Name: e963bed0fe3ce5fa32f04b930e5ed0956dc2aa47
2009-04-22 02:15:47 +00:00
danielk1977
1d46146b58
Attempt to optimize virtual table queries with 'OR' expressions in the WHERE clause. (CVS 6527)
...
FossilOrigin-Name: f61e4cd93682fd98bea2a71d346f9eaa68454390
2009-04-21 09:02:45 +00:00
drh
ea598cbd8d
Additional code to make sure and to assert that memory allocations have
...
8-byte alignment. Ticket #3777 . (CVS 6450)
FossilOrigin-Name: 208382e032134d9c78fe1cfcb98ce9defb4e3e26
2009-04-05 12:22:08 +00:00
drh
f9e749cbba
Add a comment to the doubleToInt64() routine that explains why returning
...
minInt is in fact correct when it seems like maxInt should be returned. (CVS 6405)
FossilOrigin-Name: 7f3be3608542bbc6ac7916e5c3a5436e5f0a552e
2009-03-29 15:12:09 +00:00
drh
347a7cb35b
Clarify the meaning of a comment. No changes to code. (CVS 6375)
...
FossilOrigin-Name: 7c2df04b52a40d5d1b744ad1097f7c12143d8c2c
2009-03-23 21:37:04 +00:00
shane
fbd60f826d
Changes to completely remove all floating point ops if SQLITE_OMIT_FLOATING_POINT defined. Note that w/o fp, date/time, round, nan, etc. are all gone or limited in functionality. Updated some of the test scripts to support missing fp and 64-bit functionality. Ticket #3029 . (CVS 6250)
...
FossilOrigin-Name: 5cef400023205b55152b91441acc78f9cd8d58a9
2009-02-04 03:59:25 +00:00
drh
4b9421af6f
Remove the text of the sqlite3VdbeMemSanity() routine, which was already
...
commented out. (CVS 6238)
FossilOrigin-Name: a3c260772bda68007b73feee6612495a704c84f5
2009-02-03 15:39:01 +00:00
danielk1977
78ca0e7eb4
When not compiling for an EBCDIC system, use built-in alternatives to the tolowe
...
r(), toupper() and other ctype.h library functions. Ticket #3597 . (CVS 6196)
FossilOrigin-Name: 1041abd6784d283bebf646c54e93599522f7889d
2009-01-20 16:53:39 +00:00
drh
de58ddb709
The fix in (6111) was not quite right. This version works better. (CVS 6113)
...
FossilOrigin-Name: 5f80140a2df48fd43a7cbc0990de0205004541b0
2009-01-05 22:30:38 +00:00
drh
ea6788322e
Never use strlen(). Use our own internal sqlite3Strlen30() which is
...
guaranteed to never overflow an integer. Additional explicit casts to
avoid nuisance warning messages. (CVS 6007)
FossilOrigin-Name: c872d554930ecf221ac2be5f886d5d67bb35288c
2008-12-10 19:26:22 +00:00
drh
b27b7f5d3b
More explicit type casting to silence VC++. (CVS 6006)
...
FossilOrigin-Name: 14e6d19c3157ccdce170e769d678c7f472dd3db2
2008-12-10 18:03:45 +00:00
drh
092d5efc70
Use memcpy() rather than "=" to copy a structure, in order to work around
...
a bug in the XLC compiler on AIX. Ticket #3344 . (CVS 6003)
FossilOrigin-Name: 18bbcafc16bb985a7c74e07ffb9c4f28273a7cfd
2008-12-10 11:49:06 +00:00
drh
8df32841de
Suppress more silly compiler warnings. (CVS 5995)
...
FossilOrigin-Name: 1522c2c6677b97edfa09dd64b4f9ed139aeb5bec
2008-12-09 02:51:23 +00:00
drh
2c41ef063e
Make the minimum allocate size for RowSet objects large enough to accommodate
...
8-byte pointers. (CVS 5985)
FossilOrigin-Name: b74885e0856c46412f7cf4dca4cafb740cb9a28b
2008-12-05 23:40:22 +00:00
drh
8d99363c1b
Fix a segfault that can occur in the RowSet object following a malloc
...
failure. (CVS 5978)
FossilOrigin-Name: cb0f1658d3db7ccf80843d66fa85af8de44710d0
2008-12-04 22:17:55 +00:00
drh
3d4501e573
Replace the VDBE Fifo object with the new RowSet object. (CVS 5977)
...
FossilOrigin-Name: 39a0750b49cf55e9c0927169ca47db909f5c16ea
2008-12-04 20:40:10 +00:00
drh
753cc1077b
When an OOM error occurs while resizing an sqlite_value object, make sure
...
the value of the object is set to NULL. Ticket #3488 . (CVS 5877)
FossilOrigin-Name: 7b9c9b35fffb233e76148182426199d51243fba7
2008-11-11 00:21:30 +00:00
drh
0793f1bdb4
Fix memory allocation problems when string length exceeds limits. (CVS 5865)
...
FossilOrigin-Name: b568e325205acaa2f63bce2d6cc2808edc9f2e01
2008-11-05 17:41:19 +00:00
danielk1977
f150c9de55
Fix a crash that can follow a malloc failure in sqlite3ValueFromExpr(). Ticket #3468 . (CVS 5851)
...
FossilOrigin-Name: 0996783b1b7e6dda166565071cbd19f23e7edbbc
2008-10-30 17:21:12 +00:00
danielk1977
7eae4f52ee
Modify the sqlite3VdbeMemCompare() routine so that it does not modify any Mem.z values. Ticket #3376 . (CVS 5706)
...
FossilOrigin-Name: 2d4505510032bf903a9c5d582edda442a0592c77
2008-09-16 12:06:08 +00:00
drh
709b8cb434
Make sure the function context is fully initialized before invoking the
...
function finalizer. Ticket #3326 . (CVS 5596)
FossilOrigin-Name: 8496f4a00a7e62006956e58f3d50c6c4de5347e4
2008-08-22 14:41:00 +00:00