aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* One of the ALWAYS() macros in the previous check-in could sometimes bedrh2022-01-24
| | | | | false, following an OOM. Remove it. Problem found by dbsqlfuzz. FossilOrigin-Name: 11df9187dad0eb33b0f6288b76d74f9700420ec855e8106b0bc71df48c485ad1
* Add ALWAYS() macros. Change some existing ALWAYS() into assert(). Otherdrh2022-01-24
| | | | | code simplifications. FossilOrigin-Name: 4aa27b4fcd1ffd06c38357a87ba3f5776367570439c49652f0903873def0bb23
* Remove many redundant checks for sqlite3.mallocFailed now that any OOM shoulddrh2022-01-24
| | | | | cause Parse.nErr to be non-zero. FossilOrigin-Name: 1f7fa46126ea33ed30e93186aff3df51068aeb4be6f79a102bfe8c4e44941d71
* Make it so that any Parse object is always linked into the database conenctiondrh2022-01-24
| | | | | while it is active. Hence, an OOM will cause Parse.nErr to be set. FossilOrigin-Name: 6a45d8fe8bfbc11a5b86d25237e1f8bccfb0f22f3dcaf004ba797aeb57b365ec
* Make sure the sqlite3OomFault() routine sets an error in the Parse objectdrh2022-01-24
| | | | | if there is a Parse object active and linked to the database connection. FossilOrigin-Name: ad7aace761c6b21ba453eaf43c68d985be7cbd5a200fe0d2e27a0c7150f99874
* Ensure that any error encountered while coding a trigger program is ↵dan2022-01-24
| | | | | transfered to the main Parse structure before it is used with any other routine that might set the error code. FossilOrigin-Name: 4293656578811b500786335de7cc9ac0d6ccc6fb273b9419a86968a095404c43
* Limit CLI input redirect nestinglarrybr2022-01-24
| | | FossilOrigin-Name: 7a073931752d16ba71f1a606091461e427ca5ccf4d135d3c5141bfdd4e67e2d5
* Bring sqlite3_vtab_distinct() up to spec so that it works as described in thedrh2022-01-22
| | | | | documentation. FossilOrigin-Name: 4289edf3c5e32a05b51f232020099b33f6f5e79b0ceca2b96baf1186168d9af6
* Iimproved documentation for sqlite3_vtab_distinct(). No changes to code.drh2022-01-22
| | | FossilOrigin-Name: 7af03f02940b5380ee7375672ca8d0ff68c5f741d0ea206911631f3eb5a78555
* Omit the WhereLoopBuilder.pOrderBy field, which is no longer needed.drh2022-01-22
| | | FossilOrigin-Name: a13afc909c8bb643aa154b39ba8c023bae7352d3cd7cfb96be3891fa0e4bc045
* An initial attempt to implement sqlite3_vtab_distinct().drh2022-01-22
| | | FossilOrigin-Name: d571262d2345bb11e71bef395cf078e5d7303b974b38b4e319adda6194ccc1c5
* Fix some of the new date/time function features to comply with the spec.drh2022-01-21
| | | | | Update requirement marks. FossilOrigin-Name: 2f5dc7a9eed89baf6814e9e123354b262c806c853dee1243c93286c564b9aba8
* When computing a vector to be used as a key for an index lookup, do notdrh2022-01-21
| | | | | | | | check for NULL values and abort until after all key values have been computed, in case one of the later key values involves some initialization that is needed by a LEFT JOIN. Fix for the problem identified by [forum:/forumpost/ab95010d410a0a55|Forum post ab95010d410a0a55]. FossilOrigin-Name: 4db5217a28ce767fa14ddfe51cf3ca25eceb72079d46a2fc00f7d6b8ae9abe0b
* Add requirements marks and tuning.drh2022-01-21
| | | FossilOrigin-Name: ac951490fd7d5864fe422a80ee8557478e823e79461bec2ee538f57b6733eb5a
* Initial implementation of the sqlite3_vtab_rhs_value() interface and thedrh2022-01-20
| | | | | qpvtab extension used for testing the virtual table interface. FossilOrigin-Name: 0873c76b9b96b66fa9d13ddc8bca126d575ea3352349c7fd648f0c2f75d770f5
* A better and more robust fix for the problem of reading a read-only WALdrh2022-01-20
| | | | | mode database with existing -wal and -shm files, replacing [f426874e005e3c23]. FossilOrigin-Name: 71bfd0b57ab197405606b8096b8521d784ff174c4eecf1d9804d38342c03cc80
* Fix harmless scan-build warnings.drh2022-01-20
| | | FossilOrigin-Name: ab160e8bae3a4fc2067d73fe33542f261652985390fe9b0390a4f9c33a1990bf
* Fix the ability to read read-only WAL-mode database when -shm is present,drh2022-01-20
| | | | | | ([00ec95fcd02bb415|check-in 00ec95fcd02bb415]) so that it works for the case of 64K page size. FossilOrigin-Name: f426874e005e3c23e8a00083b7c201408e072bca413e52bfc436da6483afb0cd
* Fix ALTER TABLE DROP COLUMN so that it invokes the authorizer. Fix fordrh2022-01-18
| | | | | [forum:/forumpost/fd82b85947541dec|forum post fd82b85947541dec]. FossilOrigin-Name: aca6c61d79215519fb006af19d9011029df68f195a4ce65aff7a1bf4e36efb94
* Allow an "IntReal" value to count as a REAL when checking types fordrh2022-01-17
| | | | | | insertion into a generated column on a STRICT table. [forum:/forumpost/fa012c77796d9399|Forum post fa012c77796d9399]. FossilOrigin-Name: 1ec44d55da2ced1a1b0b78b489caff628652464f5709ee827e35409eb20ea794
* Fix incorrect testcase() and assert() macros in json.c. They were not causingdrh2022-01-17
| | | | | | problems. The assert() was simply unreachable. The testcase() added an unreachable condition. FossilOrigin-Name: 5623497adc8af9950fd79392000a68ba6fdca43594603eadaa7e19c8fb845a7d
* Never allow the b-tree layers view of the number of pages in the databasedrh2022-01-17
| | | | | | | file exceed the actual number of pages in the database file, even when PRAGMA writeable_schema=ON. This helps with earlier detection of corruption, and prevents excess memory usage and CPU cycles in some integrity_check ops. FossilOrigin-Name: 0407c8793700491b8519a649b9624f569b0e7e9b94d0db79d4a08139e0ecdb69
* Fix ALTER TABLE so that it works even when compiled using -DSQLITE_DQS=0.drh2022-01-16
| | | | | [forum:/forumpost/3c1a00b66fca81fe|Forum post 3c1a00b66fca81fe]. FossilOrigin-Name: 092ad64faa4ae93b1e09ccd52159621d619e6817bcb4573331e9053d97f731fd
* Fix a NEVER() in the byte-code engine that can sometimes be true.drh2022-01-14
| | | | | Test case in TH3. FossilOrigin-Name: 7ac91b5339f820f49b0eb52055d42b6a55905444883426caf792fada63079516
* For .import schema, quote it as for other identifiers.larrybr2022-01-14
| | | FossilOrigin-Name: bff9153ceedcc7be77f2daf5139fee29c2fab742ff1fce49877965423a7d4be3
* Add --schema S option to .importlarrybr2022-01-13
| | | FossilOrigin-Name: 38d9dbca166078013a44214c88805fc7cca578976ceed9fc62f5159a38ec96a7
* When the result of a subquery is to be stored in a register and thatdrh2022-01-12
| | | | | | | | | subquery has an ORDER BY clause and an OFFSET, NULL out the destination register before starting the ORDER BY so that the register will be set correctly even if the OFFSET is larger than the number of output rows. Fix for the problem reported in [forum:/forumpost/0ec80f12d02acb3f|forum post 0ec80f12d02acb3f]. FossilOrigin-Name: 9282bcde301cee2a5c3c068b5b0b7ce992c155ece894413a6a9a51a81e4133fd
* Make tool/mctimec.tcl effect more regular and obviouslarrybr2022-01-12
| | | FossilOrigin-Name: 02aaa10f34ab17e76feb7b6f79048309536c0794fcb534b934e06f3daedfeaba
* Fix mkctimec.tcl with the updated compile-time options for JSON.drh2022-01-12
| | | FossilOrigin-Name: 8ded3f5b0025eb6cc11669c1208681e592862ce352dfff11173dff68daafad30
* Fix harmless compiler warning seen with MSVC.mistachkin2022-01-12
| | | FossilOrigin-Name: adebb9d7478d092f16fb0ef7d5246ce152b166479d6f949110b5878b89ea2cec
* Remove vestigial traces of json_ntype().drh2022-01-11
| | | FossilOrigin-Name: 8da07c8b09ff83436a34e539e4cce8ba9524390017ca14f4af8344a12e351550
* Fix the PG-compatible -> and ->> path parsing.drh2022-01-11
| | | FossilOrigin-Name: 22d5138315fb77eeea1c7e66ccc4190bcae18d058a99aa37ddd119e54b52f723
* Implement the new PG-compliant versions of the -> and ->> operators.drh2022-01-10
| | | FossilOrigin-Name: 39eff3b9bf1f318d3606d8e5361a2adb2ba8bc1ca2a436ce4f9a204aa4cf20dd
* Do not enclude ENABLE_JSON1 in the compile-time options.drh2022-01-09
| | | FossilOrigin-Name: 8bf41bc5cb19fcde569ed2c788553a848ebd9c79065bd3d2aa99e5a6bfed9696
* Merge trunk enhancements into the json-in-core branch.drh2022-01-09
|\ | | | | FossilOrigin-Name: ea755771699dcbffe0ddfd204d42fae9b6e79e107485c725b8eb6caab92aacb8
| * Add NEVER() macros to two branches that became unreachable due todrh2022-01-08
| | | | | | | | | | [e199a851e316bd47]. FossilOrigin-Name: 71272caff5874137ad0b1ddfc22ced4bb66e6c97f7868fdae0347a186f589b38
| * Add function format() as an alias for printf(), for compatibility with otherdrh2022-01-08
| | | | | | | | | | systems. FossilOrigin-Name: 68bffc612c467b2419bf5fe85a8ca16b787003e0e8c11f7c051a879f5865b847
* | Add a new built-in subtype() function.drh2022-01-09
| | | | | | FossilOrigin-Name: a25f4ce255c034fc694c33728aedb98289ebccda9c48920829ef780b92b8faee
* | Merge the JSON function enhancements from the json-enhancements branch intodrh2022-01-08
|\ \ | | | | | | | | | | | | json-in-core. FossilOrigin-Name: e116501c2f0e594eb7a3dd804daa943cc508f32ded3078aed21b695ec83bcd4c
| * | Add new binary operators "->" and "->>" to the parser that evaluate todrh2022-01-07
| |/ | | | | | | | | | | 2-argument SQL functions by the same name. Add new "->" and "->>" functions to the JSON extension that are aliases for json_extract(). FossilOrigin-Name: c4e4e3a3fc5da0381ccb7930706e57d7831d87f9c63bafe49ae64117701e1cfe
* / An attempt to integrate the JSON functions directly into the SQLite core,drh2022-01-06
|/ | | | | rather than holding them as an extension. FossilOrigin-Name: 583b47d865fb8d2c9ae4d3a4e70356a8a758978efb0a282f6b19775bf41fb748
* Remove two NEVER() macros that can sometimes be true if the database isdrh2022-01-05
| | | | | corrupt. dbsqlfuzz 0414d2c18290fc80fd5fb540def7d3e46c1ae9c6. FossilOrigin-Name: b6a82f3c3b9d89fdf628c7f117b6a4a64383a36c84fe84d47c80e845c9bd8a4f
* Fix an assert() failure that could follow an OOM when coding a RETURNING ↵dan2022-01-05
| | | | | trigger. dbsqlfuzz case 5d3e2438f15dc32b473d9f29413157857efa1212. FossilOrigin-Name: 7ae596dd4a73a09585c5dc9f4faf75d126d0733fc2fb32c1de64126a1088d967
* Improved handling of OOM errors in sqlite3ExpandReturning().drh2022-01-05
| | | | | dbsqlfuzz 1040b720f0bbc3bdcfe7336acffbf71517e3ef82. FossilOrigin-Name: 33c6b8e94bda12df13b4d2dd782b3120c3628596b86ef531d20b3100bf159b50
* Small performance and size optimization to allocateCursor().drh2022-01-03
| | | FossilOrigin-Name: 23f042669aff535afa6ee9de367656848d01e90a1c9dab9359fa938a615b4195
* Remove unnecessary assignment operations in the btree search algorithm,drh2022-01-02
| | | | | for a small size reduction and performance increase. FossilOrigin-Name: 01bd266eb682feed901a0995c2232b62d8444d19dbb227095dfbfe8edeaa5d88
* In the CLI, fix ".mode quote" output for UTF16 BLOBs.drh2022-01-02
| | | | | [forum:/forumpost/b4bfe62fe6|Forum post b4bfe62fe6]. FossilOrigin-Name: 728e9dcc6d211acd787837c41cb62275284b5e02f55bd28bf5a44e233bcb057a
* Do not open a rollback journal file when the journal_mode is OFF, even ifdrh2022-01-02
| | | | | | | | such a file exists on disk. See [forum/forumpost/ec2a102440|forum post ec2a102440] for a description. I so far have been unable to find any harm to come of the problem, other than the assertion fault when in DEBUG mode. FossilOrigin-Name: fdf9ed665b2fb07d26f3852bfd2170f2fb56851edd2851d47672116a8ea58463
* Improve formatting of an assert(). No functional changes.drh2022-01-02
| | | FossilOrigin-Name: 4bb78ce8b50af3c6f04ffdf4de4438e61370a73ccfa971479af5d58a0a7e5fbb
* Performance optimization in btreeParseCellPtr() by unrolling the loop thatdrh2022-01-02
| | | | | decodes the rowid. FossilOrigin-Name: fef72368a2eef5cb68ffc56e4f01be212d5e3318ebdb56a23ab26e1ef454272e