Commit Graph

1510 Commits

Author SHA1 Message Date
drh
1483e14cf7 Floating point values are serialized in big-endian byte order. (CVS 1431)
FossilOrigin-Name: acb65297b69c531813287166175fa7864c900fe6
2004-05-21 21:12:42 +00:00
drh
7f0f12e3ab Remove the OP_SetFound opcode and its cousins. (CVS 1430)
FossilOrigin-Name: 5524075ec02102446f8d153e068546f763d4bf7a
2004-05-21 13:39:50 +00:00
danielk1977
83ab5a8f62 Eliminate some unused code (CVS 1429)
FossilOrigin-Name: 550a53b3f28ddb288bcb6c21849ca83b0a20bde4
2004-05-21 11:39:05 +00:00
danielk1977
ca6b291fcf Pretty-print blobs in vdbe-traces. (CVS 1428)
FossilOrigin-Name: 5eb94c97657b34ed2df6455e23875e2840743bda
2004-05-21 10:49:47 +00:00
danielk1977
106bb236a8 Further work on the new API. All the functions to execute queries are there
now. (CVS 1427)

FossilOrigin-Name: fc94575d77f9865e1553bb70c2e3eda2a0b8669e
2004-05-21 10:08:53 +00:00
drh
ce665cf60e Eliminate the OP_SortMakeRec and OP_SortCallback opcodes. Sort using the
standard record format. (CVS 1426)

FossilOrigin-Name: 25643a0137d395572f16cfec3ab3327d913138ba
2004-05-21 03:01:58 +00:00
drh
736c22b803 Most sorting problems are fixed. Dead code has been removed. 3 test failures
remain but will be fixed by the new function API once it gets implemented. (CVS 1425)

FossilOrigin-Name: 3b55095e036d68886d007239333bbf90acd15692
2004-05-21 02:14:24 +00:00
danielk1977
2f2322fa9c Fix typo in bind.test that was causing a seg-fault. (CVS 1424)
FossilOrigin-Name: d1af1a4acce77b87367049da93b13746b743e831
2004-05-21 02:11:40 +00:00
danielk1977
4ad1713c5e Add new sqlite3_open() and sqlite3_open16() APIs. (CVS 1423)
FossilOrigin-Name: 307b55006c401f10ec5fa5b12cc7d5ba860f9a46
2004-05-21 01:47:26 +00:00
drh
ffbc30884c Sorting bug fixes. Now only 17 tests fail. (CVS 1422)
FossilOrigin-Name: 0736b7e8401f587f8b412602d029ef9bd69425f6
2004-05-21 01:29:06 +00:00
drh
1186b0a08b Fix a bug that prevented sorting by index. Down to 162 failed tests. (CVS 1421)
FossilOrigin-Name: b032b646b72a03e828d732ac22192f992904d79f
2004-05-20 23:37:54 +00:00
drh
d3d39e939d Add internal support for collating sequences. This breaks 244 tests. (CVS 1420)
FossilOrigin-Name: a6cb09d7af537726acc87b9133f68c81e839e047
2004-05-20 22:16:29 +00:00
drh
53db145800 sqlite3MemCompare now takes a CollSeq* argument. (CVS 1419)
FossilOrigin-Name: 5c1e47a25244eacc69b688f5f4e62cec9f09665a
2004-05-20 13:54:53 +00:00
drh
e2ea40d36d Fix problems with types and the recognition of BLOB as having no affinity. (CVS 1418)
FossilOrigin-Name: 8411718f0ac17e9c2376fdf8b5fa0cc5fc88be9b
2004-05-20 12:41:19 +00:00
drh
1ad3b9e61a Default type affinity is now NUMERIC. The affinity.html file checked into
the doc directory. (CVS 1417)

FossilOrigin-Name: 948307f07d6f8cc1cc186167ff7aaa5dfd5d8a2e
2004-05-20 12:10:20 +00:00
danielk1977
6622cce372 Add some more elements of the new API. (CVS 1416)
FossilOrigin-Name: 2821767b947ae1a70e98dd7f47d69e424c37947f
2004-05-20 11:00:52 +00:00
drh
137b35e480 Fix the misc3.test test file. (CVS 1415)
FossilOrigin-Name: 478836f44825d8154c0106e46e9a2b2daaa4cf33
2004-05-20 03:30:10 +00:00
drh
d686179207 Bug fix associated with misc3.test. (CVS 1414)
FossilOrigin-Name: a7f02db73881eb2d899daa93646962960dac5375
2004-05-20 03:02:47 +00:00
drh
b6f5452fb2 Bug fix associated with OP_SetNumColumns in insert.c. Also changed a
variable name in OP_Column. (CVS 1413)

FossilOrigin-Name: bf2181f13fdad72d8c90eccc2d29034178181731
2004-05-20 02:42:16 +00:00
drh
465407d9b6 VACUUM works again. (CVS 1412)
FossilOrigin-Name: c4e1d02ffded1421c09b0c8e45954e69f3583297
2004-05-20 02:01:26 +00:00
danielk1977
e3209e4eb6 Add some comments for sqlite3_bind_*() APIs. (CVS 1411)
FossilOrigin-Name: 46b0942239dde9982abaaa7f77d5cf8375eb4209
2004-05-20 01:40:18 +00:00
danielk1977
51e3d8e204 Add support for the new sqlite3_bind_*() APIs. (CVS 1410)
FossilOrigin-Name: e8f980d842fcd793552acd32708db55c8f014634
2004-05-20 01:12:34 +00:00
drh
a34a84fe1a Get more tests running. (CVS 1409)
FossilOrigin-Name: 7eb3f29e305d0f455f6544560c567fa6b6e24986
2004-05-19 21:09:31 +00:00
drh
fec19aad44 Correctly handle 64-bit integers in SQL statements. (CVS 1408)
FossilOrigin-Name: 34f03ba6a9d6e2144d0c6cbbbeb37b4c69705f1f
2004-05-19 20:41:03 +00:00
drh
7cf6e4de35 Change opcode names and comments to better describe the operation of
the incrKey flag.  OP_MoveTo becomes OP_MoveGe. (CVS 1407)

FossilOrigin-Name: 8f249c45cbc77f4320798ff1a830b55e5c74888a
2004-05-19 14:56:55 +00:00
drh
772ae62a82 Bug fixes in where.c. The where.test test works again. (CVS 1406)
FossilOrigin-Name: 7c31e257e2d109bfedf63dc307b422e1abd46d0e
2004-05-19 13:13:08 +00:00
drh
09e490ce3c Really remove the OP_StrEq opcode this time - appearently I didn't save the
file out of the editor before doing the check-in (1397). (CVS 1405)

FossilOrigin-Name: 821b0b297c11a5e8d08d73b5eff810652e5a0d27
2004-05-19 11:31:12 +00:00
drh
5a12e68986 Variable name change: azVar to apVar. (CVS 1404)
FossilOrigin-Name: 45169ce015da07da9a874b5b075ea6a05f59f162
2004-05-19 11:24:25 +00:00
danielk1977
54db47e3da Tests for text encoding conversion functions. Also new sqlite3_bindXX APIs. (CVS 1403)
FossilOrigin-Name: f71844bc27c9fc799af3337daf2a212370d4a724
2004-05-19 10:36:43 +00:00
danielk1977
c7134988f4 Tests for text encoding conversion functions. Also new sqlite3_bindXX APIs. (CVS 1402)
FossilOrigin-Name: a0f3f6ed2327992036267627cf663e5ca56bd3ae
2004-05-19 10:35:01 +00:00
danielk1977
e4b7c01fd5 Tests for text encoding conversion functions. Also new sqlite3_bindXX APIs. (CVS 1401)
FossilOrigin-Name: 33293ae1849dcb4587b8463466bdde2dd9336b82
2004-05-19 10:34:56 +00:00
danielk1977
295ba55ac6 Tests for text encoding conversion functions. Also new sqlite3_bindXX APIs. (CVS 1400)
FossilOrigin-Name: 4e602bb473e22cc45de2f5788c035d18586cb836
2004-05-19 10:34:51 +00:00
drh
a9fd84b034 Add definitions of the CollSeq and KeyInfo structures. (CVS 1399)
FossilOrigin-Name: cd1be81569aa6d5a365eb27b7d067a153079ce45
2004-05-18 23:21:35 +00:00
drh
428702d730 Remove dead code from vdbeaux.c. Add comments describing desired changes
to OP_Sort processing in select.c (CVS 1398)

FossilOrigin-Name: ae37e8a0bff39fd1568eae83f8761c34cd0184fc
2004-05-18 22:38:31 +00:00
drh
d93b626c0a Remove the OP_StrEq opcodes. (CVS 1397)
FossilOrigin-Name: 238442bbd267faee3eb70048bd9419af99c02931
2004-05-18 22:17:45 +00:00
drh
7efd61f240 Remove dead code from util.c (CVS 1396)
FossilOrigin-Name: 3ce42e85a2e6c95ebc0857436d5fe9384cab8628
2004-05-18 22:03:42 +00:00
drh
d8820e80fc New varint encoding gives a maximum varint length of 9 instead of 10. (CVS 1395)
FossilOrigin-Name: 61bdb53a363644074d01682fab8220078523676b
2004-05-18 15:57:42 +00:00
drh
10c0fa6a75 Additional debugging output from btree.c (CVS 1394)
FossilOrigin-Name: b2def1852c5357629cf69f0071963f9883074a70
2004-05-18 12:50:17 +00:00
danielk1977
bf3b721fab Fix many problems with manifest types and column affinity. Most things are
working now. (CVS 1393)

FossilOrigin-Name: ad4a964158ba9ca9d221cf7ea0439577f3894890
2004-05-18 10:06:24 +00:00
danielk1977
84ac9d02dd Fix many problems with manifest types and column affinity. Most things are
working now. (CVS 1392)

FossilOrigin-Name: a62872aacd544a1465b06e007153168663f3c83a
2004-05-18 09:58:06 +00:00
danielk1977
eb015e03e1 Bugfix for row format. (CVS 1391)
FossilOrigin-Name: c1745f47ae6597953426c852559c3ba559b5ecd4
2004-05-18 01:31:14 +00:00
danielk1977
b4964b723c Omit the '\0' at the end of UTF-8 strings on disk (it is implied). Also
don't store the number of rows at the beginning of each table record. (CVS 1390)

FossilOrigin-Name: 202a470f2c1804a96e69f16709d1a92e405971f0
2004-05-18 01:23:38 +00:00
danielk1977
e014a83880 More changes to support the new types model. Compound SELECTs are currently
broken. (CVS 1389)

FossilOrigin-Name: 0f6c9b05e688e281fa168aacdd867db408df2863
2004-05-17 10:48:57 +00:00
danielk1977
93edea9380 Fix a bug meant real numbers with a negative sign were being stored as
strings by default (instead of IEEE floats). (CVS 1388)

FossilOrigin-Name: 9321e7426337e04064b5791c48dd5fc3c1eecaa2
2004-05-16 22:55:28 +00:00
drh
96f5b7672d Fix a bug in the BTree balancing routine. (CVS 1387)
FossilOrigin-Name: 6c73544bfacb891aae8d6124a2903ccff616494b
2004-05-16 16:24:36 +00:00
danielk1977
f9dd2c2e04 Fix two bugs that were causing lots of tests to fail. (CVS 1386)
FossilOrigin-Name: 5cba8a510c0aeae740db695e960c60e5f6c303f5
2004-05-16 11:57:28 +00:00
danielk1977
a37cdde042 More changes to support the manifest type model. A few things are currently
broken. (CVS 1385)

FossilOrigin-Name: a4af838f8d1b81ec6c8db97655c6876aca0738d9
2004-05-16 11:15:36 +00:00
drh
3add367f2f More speed improvements to btree. (CVS 1384)
FossilOrigin-Name: aab4b794b4238bad5c4a6aee7d4443732921127d
2004-05-15 00:29:24 +00:00
drh
d7556d209e Allocates VDBE cursors one by one in separate memory so that pointers to
cursors can persist through a realloc(). (CVS 1383)

FossilOrigin-Name: d8bacc16801606176fe8639b2f55b4584ad549df
2004-05-14 21:59:40 +00:00
drh
9188b38919 Cache record headers in the OP_Column opcode. (CVS 1382)
FossilOrigin-Name: 8d9eab178f285415775060369f372a88c7091f9f
2004-05-14 21:12:22 +00:00
drh
fa1a98a24e More speed improvements. (CVS 1381)
FossilOrigin-Name: cf75cac9b6bd43e60c6e25042b194ec5c60e5671
2004-05-14 19:08:17 +00:00
drh
6d2fb15475 Optimized varint routines and tests added. (CVS 1380)
FossilOrigin-Name: d4e0933dc72b66157164610e0b03f339bc535fb9
2004-05-14 16:50:06 +00:00
drh
10617cddf6 Performance improvements (CVS 1379)
FossilOrigin-Name: cad47917267d32ab00c8b949151c8bc3c6638479
2004-05-14 15:27:27 +00:00
drh
e6c438166f Table 1 of a database (the sqlite_master table) defaults to use B+trees. (CVS 1378)
FossilOrigin-Name: 45b60de5c7deb83d10ab54759434e32847f0c2ef
2004-05-14 12:17:46 +00:00
danielk1977
940762585e Use B+trees for tables (CVS 1377)
FossilOrigin-Name: c6604a94d25d148fbb42b47ae9a8195e4697c681
2004-05-14 12:16:11 +00:00
danielk1977
13dadd2798 Delete some code no longer in use (CVS 1376)
FossilOrigin-Name: f24aedc2b0c401d8b714ba39b604d7caa7f6a430
2004-05-14 11:16:56 +00:00
danielk1977
3d1bfeaa22 Implement type affinity for table and index records (CVS 1375)
FossilOrigin-Name: dbfe6e93166d9557d66cab9dca7977baa3501e5e
2004-05-14 11:00:53 +00:00
drh
b6f4148607 Changes to btree and pager in preparation for moving to run-time page
size determination. (CVS 1374)

FossilOrigin-Name: f63fb6dd4e8e33d4c1983396b1a0305836ee4df7
2004-05-14 01:58:11 +00:00
danielk1977
e7c8d58a1f Changes to make regression tests in rowid.test pass. (CVS 1373)
FossilOrigin-Name: 790226c94493a6d58a7e52fd3ed35ef495fab11e
2004-05-13 13:38:52 +00:00
danielk1977
50ce750c2a Change the OP_ListXX opcodes to use 64 bit integers (CVS 1372)
FossilOrigin-Name: da9b3dce334bde99360db45b4a3d41be519ec2d1
2004-05-13 12:32:11 +00:00
danielk1977
9688f3796b Update quick.test (CVS 1371)
FossilOrigin-Name: a61eefa081c219704d9e6c4ee20ef9bf01d76b7f
2004-05-13 11:46:00 +00:00
danielk1977
96fc5fe6a5 Various minor fixes and updates to make more test cases pass. (CVS 1370)
FossilOrigin-Name: dbe8385ecf1df8bf0b1baf5e811ec5a1de5c4c42
2004-05-13 11:34:16 +00:00
danielk1977
183f9f7360 Commit vdbeaux.c, which should of gone in with the previous commit. (CVS 1369)
FossilOrigin-Name: 5378a6404058f5e9d3e91269ab27afef9874b43a
2004-05-13 05:20:26 +00:00
danielk1977
452c989fd8 Manifest types in indices. At the moment indices use manifest typing, but
some other parts of the SQL engine do not, which can lead to some strange
results. (CVS 1368)

FossilOrigin-Name: 9f2b6d9d3a07e25fcdb7e8290da7a182a65c37b2
2004-05-13 05:16:15 +00:00
drh
6f11bef7d6 Allocate more overflow data onto overflow pages, thus wasting less disk space. (CVS 1367)
FossilOrigin-Name: 1d52a4bb478648ef53a0dbb21865ccb9281dc24a
2004-05-13 01:12:56 +00:00
drh
fc70e6fcec Fix a problem with B+trees. (CVS 1366)
FossilOrigin-Name: 64a75c4cd40f79c7b384bb2972922ff0c10212a4
2004-05-12 21:11:27 +00:00
drh
8b18dd4fb5 Implement a B+tree option (all data stored on leaves). (CVS 1365)
FossilOrigin-Name: b8f70d17f06531269caa0a127efb2d25ad0f3e1c
2004-05-12 19:18:15 +00:00
drh
4a1c380a4b Btree uses signed integers for the rowid. The intToKey() and keyToInt() macros
are now no-ops. (CVS 1364)

FossilOrigin-Name: fb3c80301441f0d255164578601439db3e0c7a61
2004-05-12 15:15:47 +00:00
drh
ac69b05efa The pager now handles file ":memory:" complete in memory with no disk I/O. (CVS 1363)
FossilOrigin-Name: 97de9f7ceebab859ef984d155808575ad321afc0
2004-05-12 13:30:07 +00:00
danielk1977
8d059845fc Add some more code to support manifest typing in indices. Not activated yet. (CVS 1362)
FossilOrigin-Name: 2f16c9ef3c101c4280991ce3cb0c3bea7b6ed439
2004-05-12 11:24:02 +00:00
danielk1977
cfcdaefe11 Change the table record format to support manifest typing. (CVS 1361)
FossilOrigin-Name: 0242c9e4f7c85e9c911cf30d90b0cdb1015f3d7d
2004-05-12 07:33:33 +00:00
drh
779b6d357a Change sqlite_ to sqlite3_ in the attach2.test test script. (CVS 1360)
FossilOrigin-Name: 98f756e6a0809e7034bfb587ff9d9085baac0c6e
2004-05-11 10:04:48 +00:00
drh
f4dada7512 A different fix for the problem with opening existing files. See also
check-in (1358). (CVS 1359)

FossilOrigin-Name: 93deaf54c6e1daee0c89a5e2a7d4a5e712ece3f4
2004-05-11 09:57:35 +00:00
danielk1977
bf57cfebc2 Fix a bug that was preventing the library from opening existing files. (CVS 1358)
FossilOrigin-Name: ad064bd429602fcac26b377841da90a1a56f5966
2004-05-11 09:50:02 +00:00
drh
a3b321df91 Fix an offset problem in the meta values that was causing problems for
many tests. (CVS 1357)

FossilOrigin-Name: 6d378cb7e7e081bb3bcd3a347bc1e02f50ee25cc
2004-05-11 09:31:31 +00:00
drh
33825340cb Remove the unused upgrade_3_schema subroutine from main.c. (CVS 1356)
FossilOrigin-Name: b5d2771ee0e9c77967b4a64a97dcd56c067bc7b8
2004-05-11 09:05:48 +00:00
danielk1977
9400f26176 More small changes to get test cases to execute. (CVS 1355)
FossilOrigin-Name: 6dc6004684a97fbdba2f2dce94086dc2c4967a42
2004-05-11 08:48:10 +00:00
danielk1977
3d68f03a96 Remove code dealing with old file formats. (CVS 1354)
FossilOrigin-Name: dfde112116b982017a5516590ff1780e8aa519ce
2004-05-11 07:11:51 +00:00
danielk1977
36a3c70b98 More minor changes to accomadate the new btree. All the select* tests
pass now. (CVS 1353)

FossilOrigin-Name: 941d0fdc97ad0a2ba0e823ce40022bdef857aa6e
2004-05-11 06:55:14 +00:00
danielk1977
6490bebd62 Minor changes to the vdbe so that more tests pass. (CVS 1352)
FossilOrigin-Name: 16078fe0ea146537f75b869e6b0cce202af6781b
2004-05-11 06:17:21 +00:00
danielk1977
0dbe72b952 Fix up a couple of little things in the vdbe. select1.test passes now. (CVS 1351)
FossilOrigin-Name: 9ba0df4d7792dccb67782113751c0e5807348d62
2004-05-11 04:54:49 +00:00
danielk1977
643631771d Internal symbols MEM_Dyn and MEM_AggCtx were defined as the same bit pattern.
Change MEM_AggCtx to 0x1000. (CVS 1350)

FossilOrigin-Name: 2fffd133a5e0058f02c20c498875093261e9ee19
2004-05-11 03:11:22 +00:00
danielk1977
49f737d124 Fix a bug in the btree code for reading varints greater than 2^32. (CVS 1349)
FossilOrigin-Name: 7bc4f5543fbfa9f3fe6e9479a1f85fbaf6c95af4
2004-05-11 02:10:06 +00:00
drh
1bbf5ee85c Update the main.mk makefile so that it builds everything again. (CVS 1348)
FossilOrigin-Name: e6e52fc2e62835712d6b92a19fdbd2ba15b2e9cd
2004-05-11 01:18:24 +00:00
drh
0e1c19e2b6 Updates to sqlite3BtreeKeyFetch() and sqlite3BtreeDataFetch(). (CVS 1347)
FossilOrigin-Name: a675ac49882887dfcbf671e9092a29aca9eb694e
2004-05-11 00:58:56 +00:00
danielk1977
5f8d8a844c Change to OP_PutIntKey to use new btree API. (CVS 1346)
FossilOrigin-Name: c080fed7b58e754bb34afe597ff3b2f399c7d313
2004-05-11 00:28:42 +00:00
drh
f328bc80ce Work toward getting the new btree.c integrated with vdbe.c. (CVS 1345)
FossilOrigin-Name: bc5a2dafa1df74ba6403b4751ac1c33b0fee2884
2004-05-10 23:29:49 +00:00
drh
3644f0858d The btree.c module passes all tests and is ready for integration.
Still need to go back and do coverage testing. (CVS 1343)

FossilOrigin-Name: 84506b23365933383397e02a8ec5a980c57c80fc
2004-05-10 18:45:09 +00:00
drh
24cd67e732 The btree.c module now passes all the historical regression tests. New tests
for new functionality still need to be added. (CVS 1342)

FossilOrigin-Name: 433ae0d327e5d5b0761e88418ed57fc4cbf4966b
2004-05-10 16:18:47 +00:00
drh
3dc0b8ebe3 Add flags values to the Mem structure to accomodate BLOBs and to show
the representation of strings. (CVS 1341)

FossilOrigin-Name: 3af283f483f75795d5b03dc8fd886aaf326d50b7
2004-05-10 12:07:10 +00:00
danielk1977
1d994699a0 Change the names of external symbols from sqlite_XXX to sqlite3_XXX. (CVS 1340)
FossilOrigin-Name: ac46bd686d2211813d254af578fe4e211162bc4b
2004-05-10 10:37:18 +00:00
danielk1977
132872b37e Change the names of external symbols from sqlite_XXX to sqlite3_XXX. (CVS 1339)
FossilOrigin-Name: 19b100ec0d088b2cca147c967a80d18403b7ee86
2004-05-10 10:37:18 +00:00
danielk1977
6f8a503d71 Change the names of external symbols from sqlite_XXX to sqlite3_XXX. (CVS 1338)
FossilOrigin-Name: 2242423e31a5e81e89ffcc99e62307c5cc0120d5
2004-05-10 10:34:51 +00:00
danielk1977
24b03fd055 Change the names of external symbols from sqlite_XXX to sqlite3_XXX. (CVS 1337)
FossilOrigin-Name: ba2ba24263a9e4d1b65b441295504a5da6380f33
2004-05-10 10:34:34 +00:00
danielk1977
90e4d95d14 Add some functions to serialize and deserialize vdbe values (used
by manifest typing). (CVS 1336)

FossilOrigin-Name: 05434497ba5d9971d23144eb4b9d709c233f6546
2004-05-10 10:05:53 +00:00
danielk1977
9490bee025 Add versions of OP_MakeRecord and OP_Column that use manifest typing (not
activated yet). (CVS 1335)

FossilOrigin-Name: 9ea8e8ab23d46adb2970ccf62340703ec42345fa
2004-05-10 07:17:31 +00:00
danielk1977
192ac1dcab Add versions of OP_MakeRecord and OP_Column that use manifest typing (not
activated yet). (CVS 1334)

FossilOrigin-Name: 8a66a502ba09e3d858d2f45df9b3b665ebb85d5b
2004-05-10 07:17:30 +00:00
danielk1977
8e150818ec Change some code that assumes the root-page of sqlite_master is 2 (it is
now 1) (CVS 1333)

FossilOrigin-Name: 37ae528fb85799007f4ddfc56a7d9493dbb29cbf
2004-05-10 01:17:37 +00:00
danielk1977
189621d81f Add a temporary sqlite2BtreeKeyCompare() function to help get
regression tests passing again. (CVS 1332)

FossilOrigin-Name: d8d1c91e55f24d17233414facaa03136b3b320d5
2004-05-09 23:23:56 +00:00
drh
3a4c141357 More btree.c bug fixing. It's getting closer but still not there yet.
Move obsolete test scripts into the attic. (CVS 1331)

FossilOrigin-Name: 9379c7c9cf8b0770a0c8d1feb5ffdba342173589
2004-05-09 20:40:11 +00:00