Commit Graph

5810 Commits

Author SHA1 Message Date
danielk1977
95338ab70c Remove some asserts that refer to variables removed in (5830). (CVS 5884)
FossilOrigin-Name: 9d880a6fd244fb73d0fce7e8180177c54d95cde2
2008-11-11 18:43:00 +00:00
danielk1977
41a6a61d94 Change the way threadsOverrideEachOthersLocks() works to avoid trying to write-lock a (potentially) read-only files. Also, assume that on non-linux systems threads do override each others locks. Ticket #3472. (CVS 5883)
FossilOrigin-Name: 8ecae0943b06102fe22133db0dcaf58ecbd39545
2008-11-11 18:34:35 +00:00
drh
a78c22c433 Cleanup in flattenSubquery. Add OOM tests for flattenSubquery. Fix issues
with OOM errors causes problems for flattenSubquery.  Ticket #3485. (CVS 5882)

FossilOrigin-Name: ea5f4baa041aed934600f0f96b84afb92a14bc47
2008-11-11 18:28:58 +00:00
shane
5780ebdf79 Fixed crash in integrity_check with corrupt content offset size in page header. (CVS 5881)
FossilOrigin-Name: 0659a666ff0a9fc81ee4df3c35e535164c79e588
2008-11-11 17:36:30 +00:00
drh
86a7a69cbe Avoid signed/unsigned comparison warnings in bitvec.c by changing the
types of loop variables to unsigned int. (CVS 5880)

FossilOrigin-Name: da869446c53ec6ed769bba01cdc2b6fd69a8b5c9
2008-11-11 15:48:48 +00:00
drh
4d01aeedbb When an assignment occurs in a boolean, always test the result using "!=0"
to avoid confusion and make it clear that assignment is intended, not
an equality test.  Ticket #3491. (CVS 5879)

FossilOrigin-Name: 89ee5295bdea6f2c093eb6a44d69917dcc8459e3
2008-11-11 00:36:16 +00:00
drh
c717b382b8 Fix the CLI so that it does not terminate input when an Oracle or MS-SQL
command terminator mark is seen in the middle of a string literal.
Ticket #3490. (CVS 5878)

FossilOrigin-Name: 68662e3b487b80b2c94cd2376060388bd8df0e4e
2008-11-11 00:30:11 +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
2e904c5f9e Fix the documentation of the SQLITE_FUNCTION authorizer code so that it
agrees with how SQLite has always behaved.  Ticket #3489. (CVS 5876)

FossilOrigin-Name: 806b6ed202292e386ac3e51cebcfb67f3870cd2f
2008-11-10 23:54:05 +00:00
shane
b2111838c6 #ifdef out unused static function mutexIsNT(). Ticket #3481. (CVS 5875)
FossilOrigin-Name: 239186804c7541abc512da33bba8f6fc7d24a374
2008-11-10 20:01:40 +00:00
shane
c782f69abb Updated comment in source. Ticket #3453. (CVS 5874)
FossilOrigin-Name: 83caa22087bcaa184eff559971262e4d7eecd0e0
2008-11-10 19:24:38 +00:00
shane
c8330f4b1d Add check for ifcapable autovacuum to vacuum2-3.3 test. Ticket #3435. (CVS 5873)
FossilOrigin-Name: fc36f2fc45b2d319ef0be97e1af1748d3e862690
2008-11-10 18:20:16 +00:00
shane
2479de3a20 Removed a few more small parts of memsys6 code, including some config and test code for it; (CVS 5872)
FossilOrigin-Name: a11241d6fbc9e0408d5adc73d494b85124d2d609
2008-11-10 18:05:35 +00:00
shane
831c329542 In btree.c, omit calls to setChildPtrmaps() if SQLITE_OMIT_AUTOVACUUM is defined. Ticket #3439. (CVS 5871)
FossilOrigin-Name: e0f07323e878c44ad2ccc38628c74c27f79e35ef
2008-11-10 17:14:58 +00:00
shane
7ba429a61c Fixed typos; Consistent use of Mac OS X name; (CVS 5870)
FossilOrigin-Name: dfc94743378e576ecc5c567ae4020bf9594a3fb9
2008-11-10 17:08:49 +00:00
drh
bbf695d6ea Prevent buffer overruns when converting malformed UTF16 to UTF8. Ticket #3482. (CVS 5869)
FossilOrigin-Name: 3f657e88767f60d305dd6151e7aa54363341d052
2008-11-07 03:29:33 +00:00
drh
98c58356ae Prevent a rollback from crashing if the sector-size field of the
rollback journal is corrupted. (CVS 5868)

FossilOrigin-Name: cf9d1d933f6b6713018928d9a7680ae63e8edcd0
2008-11-07 00:24:53 +00:00
drh
4c17c3fb11 Add documentation to make it clear that short reads from xRead in the VFS
must be zero-filled. (CVS 5867)

FossilOrigin-Name: fb311d6f4098a08f05b3fac9a2a7e2a53c38bb5f
2008-11-07 00:06:18 +00:00
drh
1735fa8892 Fix a bug in the CAST operator associated with the column cache. (CVS 5866)
FossilOrigin-Name: 1b6a5140446da896f69fddc8d1ea076815bb45e3
2008-11-06 15:33:03 +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
drh
ad4a4b8047 The COMMIT command now works even if there are pending queries, as long
as the pending queries are reading and not writing the database. (CVS 5864)

FossilOrigin-Name: 51f04aaff2803487933b9dfcf39f27a249f18a98
2008-11-05 16:37:34 +00:00
shane
7b607a081f Should be 'memjournal.lo' instead of 'memjournal.o'. Ticket #3480. (CVS 5863)
FossilOrigin-Name: 8b868604217571cf2f60cdf46adb9721ca071bf9
2008-11-04 21:51:03 +00:00
danielk1977
5f6d0268fb Add test cases for sqlite3_db_mutex(). (CVS 5862)
FossilOrigin-Name: f818e8e5cb20c51922d0b5424f17649e0692f273
2008-11-04 14:55:47 +00:00
drh
2838b47234 Enhance documentation of sqlite3_db_mutex(). (CVS 5861)
FossilOrigin-Name: 3aed410ab08557ec92101e5d7c4c90ba50555ddc
2008-11-04 14:48:22 +00:00
drh
c46f52034f Avoid a segfault when OOM on a simple EXPLAIN query. Ticket #3478. (CVS 5860)
FossilOrigin-Name: acf26cc0f77b3a308d86f6dc02ecda66a4b12fd0
2008-11-04 14:25:06 +00:00
drh
4413d0e976 Add the sqlite3_db_mutex() interface. No test cases yet. (CVS 5859)
FossilOrigin-Name: d95de32e8ded397adeef8f7a29b87bc85669ac95
2008-11-04 13:46:27 +00:00
drh
3e0a3c9df4 Test cases to verify that COMMIT and ROLLBACK return SQLITE_BUSY when
there are active statements. (CVS 5858)

FossilOrigin-Name: cedfa214e4e979ab04a30f558f767d46862151de
2008-11-03 21:40:00 +00:00
drh
dfe88ece74 Change the name of the Cursor object to VdbeCursor. (CVS 5857)
FossilOrigin-Name: fdb98fd8c1706085ebeef8e48ac6737839bed5e5
2008-11-03 20:55:06 +00:00
danielk1977
e435975093 Modify an assert() statement to fix #3473. No other code changes. (CVS 5856)
FossilOrigin-Name: aca6b260c0dd1a1515b70f3567a0653b6bcdeea2
2008-11-03 09:39:45 +00:00
danielk1977
3072c5ea11 Fix a bug reported on the mailing list triggered by the pattern "SELECT <col>, (SELECT ... FROM tbl WHERE rowid > <col>) FROM ...". (CVS 5855)
FossilOrigin-Name: 6c918c4eb9362ebfdbe0486515679102b2862970
2008-11-03 09:06:05 +00:00
shane
2d16fb1d34 Test that single byte corruptions in increasingly larger quantities are handled gracefully. (CVS 5854)
FossilOrigin-Name: c73d915923e393f72e1c0897526a20527db2e03c
2008-10-31 13:57:40 +00:00
danielk1977
10fb749b37 Change the way sqlite3VdbeSetColName() is called so as to remove a few lines of code. This also fixes #3470. (CVS 5853)
FossilOrigin-Name: bfce91429b1dad6e0ca36929e41a7adfb30f8522
2008-10-31 10:53:22 +00:00
drh
1c0dc8256b Fix a faulty assert() in the merge implementation of the UNION operator.
Ticket #3467. (CVS 5852)

FossilOrigin-Name: cd1662e964d9c071a41038676c5a6ef2c990f1ac
2008-10-30 22:13:23 +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
drh
99dfe5eb47 Add the sqlite3_extended_errcode() interface. Change to return
SQLITE_BUSY instead of SQLITE_ERROR when a COMMIT is attempted and one
or more queries are still pending. (CVS 5850)

FossilOrigin-Name: 4c6a90a16627b1664bf7f15ab40b440b3bd60b48
2008-10-30 15:03:15 +00:00
danielk1977
281d8bd3ac If a hot-journal file is detected but the application does not have the required read/write permissions, return SQLITE_CANTOPEN. Prior to this change, SQLITE_BUSY was returned. Ticket #3457. (CVS 5849)
FossilOrigin-Name: dc5308c7629abe6a3bad21489c8e97087c264e5a
2008-10-29 07:01:56 +00:00
drh
d1370b6d92 Remove the vestigial mem4 and mem6 memory allocators. Add the
SQLITE_ZERO_MALLOC compile-time option and the mem0.c module to
handle memory allocation for that case. (CVS 5848)

FossilOrigin-Name: 4651f590f0b8bf13938b2b15d5082136e763af8d
2008-10-28 18:58:20 +00:00
drh
27c3bd7b73 Add data structure description comments to memjournal.c. (CVS 5847)
FossilOrigin-Name: e9c2adbcbf5c28837b06e0fbba93f1764cc3607f
2008-10-28 18:12:36 +00:00
danielk1977
0f3f072d9f Avoid exposing internal interfaces sqlite_attach() and sqlite_detach() as SQL scalar functions. Ticket #3466. (CVS 5846)
FossilOrigin-Name: 679c0b35aaa1ea488a205cc03802e7078a2bcf29
2008-10-28 17:52:39 +00:00
danielk1977
52bd7912af If an SQLITE_DELETE authorization callback returns SQLITE_IGNORE, proceed with the delete operation but disable the truncate optimization. (CVS 5845)
FossilOrigin-Name: 65a2e131732399f0f14f982eb0689482fdb87b6c
2008-10-27 15:34:32 +00:00
danielk1977
c7af484b4b Make sqlite3_count_changes() and total_changes() work with "DELETE FROM <table-name>". (CVS 5844)
FossilOrigin-Name: e68e4282adb9003aa297d033aeb5d9cadee215cd
2008-10-27 13:59:33 +00:00
danielk1977
9a02fb444c Remove some if() conditions that are always true from delete.c. (CVS 5843)
FossilOrigin-Name: 297ad90dd3a69002e6e4175e9e3938b3a627574d
2008-10-27 08:24:38 +00:00
danielk1977
a7435e31ab Remove unused parameter from function rtreeInit() (part of the r-tree extension). (CVS 5842)
FossilOrigin-Name: 3224ea59812d0f3b5685bd92751054b81e3b681e
2008-10-25 17:10:10 +00:00
drh
31daa63f3e Disable the result-set alias cache when on conditional code branches.
Ticket #3461.  The column cache and result set alias cache mechanisms are
prone to this kind of error and need to be refactored.  This check-in should
be considered a temporary fix in advance of a more general redesign of the
whole mechanism. (CVS 5841)

FossilOrigin-Name: 1fa3bbd8220ce073e91935ea362b6f5d5d6d2859
2008-10-25 15:03:20 +00:00
danielk1977
a2f8c24ca3 Add file tkt3461.test with a few examples of bug #3461. Because these tests currently fail they are disabled for now. (CVS 5840)
FossilOrigin-Name: f2cc159159278201809022706c28bc53b6c3c859
2008-10-25 09:34:59 +00:00
danielk1977
f96a3778f9 Fix a bug in pragma table_info. Column default values specified as negative numbers (col DEFAULT -1) were being reported as NULL by the pragma. (CVS 5839)
FossilOrigin-Name: 0e448bc6096c7ee3b21dbd22dc4ca9470ae7ba31
2008-10-23 05:45:07 +00:00
shane
b1cd7308dc Updated configure/makefiles to handle SQLITE_ENABLE* compile options. Made sure makefile passes command line options (OPTS=-Dfoo) to the compiler. Add -DSQLITE_COVERAGE_TEST=1 if gcov being used. (CVS 5838)
FossilOrigin-Name: acb106e51f8bb7449a0e214075c559cc66497277
2008-10-22 18:27:31 +00:00
shane
891adeac5c Removed some more dead code and fixed some unresolved externals for WINCE. Ticket #3420. (CVS 5837)
FossilOrigin-Name: 5276e31d42070e7b94bd6050c4fa484dfbfe98ca
2008-10-22 16:55:47 +00:00
shane
049fc21db9 Make sure variable declarations occur first in code blocks. (CVS 5836)
FossilOrigin-Name: b78f44c91fcf3920e69c11a6f72e8f032905a3c7
2008-10-22 16:26:47 +00:00
shane
3ed4e64cd8 Test cases for ticket #3442. (CVS 5835)
FossilOrigin-Name: a8bb5acf708c8f7e52d3f67b85094116386f10fa
2008-10-22 16:04:42 +00:00