1544 Commits

Author SHA1 Message Date
drh
4f26d6c429 Refactoring of the vdbe Mem functions and the APIs that deal with them.
The code will not compile in its current state. (CVS 1465)

FossilOrigin-Name: bba6684d502ba1ecd9614d2470ec94296e3c07c2
2004-05-26 23:25:30 +00:00
drh
f9b596ebc0 Remove dataType and includeTypes flags from function definitions. Added new
P3_FUNCDEF type for P3 arguments on opcodes.  Fixes to several user functions.
28 tests fail now. (CVS 1464)

FossilOrigin-Name: 36e031625995b2f7baf7654d771ca8fb764a0085
2004-05-26 16:54:42 +00:00
danielk1977
b77f5dadbf Ensure the type of an sqlite3_value* is not modified by calls to
sqlite3_value_*() calls. (CVS 1463)

FossilOrigin-Name: ce8b15203413f38a8b7127eb08ae5db1c1eb164a
2004-05-26 13:27:00 +00:00
danielk1977
3cf8606395 Add some tests for the new API. Many more to come. (CVS 1462)
FossilOrigin-Name: d5659f2ee6788e0205fb5e03eeaf64e6c0aa9bed
2004-05-26 10:11:05 +00:00
danielk1977
398eae781e Remove the show_datatypes pragma. (CVS 1461)
FossilOrigin-Name: 93bb958d939302795027f738b8f663cbce3e8783
2004-05-26 06:58:43 +00:00
danielk1977
6590493d53 Use the new form of the sqlite3_create_function() API. (CVS 1460)
FossilOrigin-Name: 0317bef4b0c219ca2888c90553201e53230fb360
2004-05-26 06:18:37 +00:00
danielk1977
fc57d7bf72 Use the new API calls more consistently. (CVS 1459)
FossilOrigin-Name: 17e7db488dac6b30d174f2272edf1046c2bb9990
2004-05-26 02:04:57 +00:00
danielk1977
17240fd90f More changes to do with the new sqlite3_step() API. (CVS 1458)
FossilOrigin-Name: e83138250ce0a8caacbd1822eec2e06796d2f5f2
2004-05-26 00:07:25 +00:00
drh
8c6fa9b03b Minor code fixes in btree.c and pragma.c to help with watcom C. (CVS 1457)
FossilOrigin-Name: 143c502a59e727975f61c8d13b6c5a90dad038f3
2004-05-26 00:01:53 +00:00
danielk1977
98d30677b0 Add file legacy.c with old APIs. (CVS 1456)
FossilOrigin-Name: ae18fcb7ad91096f8029605b54d71ec225f31f32
2004-05-26 00:01:35 +00:00
danielk1977
22322fd42b Move the sqlite3_exec() function to legacy.c. (CVS 1455)
FossilOrigin-Name: 9385ad5ca82c82d9ef699102ca0b53661d02a052
2004-05-25 23:35:17 +00:00
danielk1977
0ae8b83155 Change a couple of symbol names for the new user function API. (CVS 1454)
FossilOrigin-Name: 8f6b20c2938ded7ab9e400494c02370ecf7e9311
2004-05-25 12:05:56 +00:00
danielk1977
7e18c259fe Use the new API for returning values and errors from user functions. (CVS 1453)
FossilOrigin-Name: 4eccae03b4a7f37804fea30416579787c3584bb2
2004-05-25 11:47:24 +00:00
danielk1977
88208050b6 Add manifest type aware versions of the min() and max() aggregates. (CVS 1452)
FossilOrigin-Name: b77c268ebebd5401c3f519a72cfb81438207368c
2004-05-25 01:13:20 +00:00
danielk1977
6ddcca553d Aggregate functions also use sqlite_value* instead of const char * for
arguments. (CVS 1451)

FossilOrigin-Name: 5c28ed5e9b5a3ecb3081ce0c5c9450d6ae8dc77d
2004-05-24 23:48:25 +00:00
danielk1977
35bb9d026e Update the typeof() operator to respect manifest types. (CVS 1450)
FossilOrigin-Name: 162cf42e33691f4c9ec3a25abcaa2bdcdca2b5e0
2004-05-24 12:55:54 +00:00
danielk1977
51ad0ecd28 Non-aggregate SQL functions use sqlite_value* instead of const char * for
argument values. (CVS 1449)

FossilOrigin-Name: 1e47d7384d5fdfceb6ec737c656f70be59ba5b01
2004-05-24 12:39:02 +00:00
danielk1977
7e435458a0 Fix typo in vdbe.c from previous commit. (CVS 1448)
FossilOrigin-Name: a554bf6c7075839f760a2ff944ac61b32cab0821
2004-05-24 09:15:39 +00:00
danielk1977
0ffba6b269 Add the sqlite3_value_*() access functions. (CVS 1447)
FossilOrigin-Name: 4bf925fcfccb18e66be031f8a234f370d581e9ea
2004-05-24 09:10:10 +00:00
danielk1977
bd7e46086e Fix for retrieving UTF-16 little-endian text from a big-endian database. (CVS 1446)
FossilOrigin-Name: 8104baf23dd28fc982cf260e3e8c90f0c582f602
2004-05-24 07:34:48 +00:00
danielk1977
8a6b5411b3 Have the vdbe handle strings in the same encoding as the database. (CVS 1445)
FossilOrigin-Name: b7155db2b13aa3ca5f6c68e948d9e8740ebcac47
2004-05-24 07:04:25 +00:00
danielk1977
93d4675d67 Begin changing the vdbe so all stack values use the database encoding. (CVS 1444)
FossilOrigin-Name: f47de3a933b51b37629a0ca2e492a534a12e7339
2004-05-23 13:30:58 +00:00
drh
7906975a0f Remove the OP_SetInsert opcode. (CVS 1443)
FossilOrigin-Name: 18e690e405710c9a8010340c01754bbfa3231fe9
2004-05-22 21:30:40 +00:00
drh
be94025f3b Move btree_rb.c into the attic. (CVS 1442)
FossilOrigin-Name: 4159ef235d780ec941677439e77c6fa96e24997c
2004-05-22 17:46:37 +00:00
drh
bbd42a6dda Split up os.c into separate files, one for each platform. (CVS 1441)
FossilOrigin-Name: 5c61be1c47ac960fba2a642e69a98436ce1cd725
2004-05-22 17:41:58 +00:00
drh
60ca804396 Bug fix in vdbe.c - variable declarations must come before code in ANSI C. (CVS 1440)
FossilOrigin-Name: c36203de22f673691783529e06ce5a58bcebeedc
2004-05-22 11:09:30 +00:00
danielk1977
fe7fdb7344 Add a couple of tests for UTF-16 databases. (CVS 1439)
FossilOrigin-Name: 891be63a92097384e1b00993d35f002048c4b42e
2004-05-22 10:33:04 +00:00
danielk1977
e1cd98740f Add a couple of tests for UTF-16 databases. (CVS 1438)
FossilOrigin-Name: d7551df8c32c4981d94eb57cd2a999592e91f50f
2004-05-22 10:33:04 +00:00
danielk1977
802908635d Use the new form of the sqlite3_open() API everywhere. (CVS 1437)
FossilOrigin-Name: b449217318ade3196757bef8aaf7302634f0f9b6
2004-05-22 09:21:21 +00:00
danielk1977
28d47b57ec Tests for the functions in utf.c. (CVS 1436)
FossilOrigin-Name: 802d65affcafffda33e2ff1cbd4e4869dc3814df
2004-05-22 08:16:11 +00:00
danielk1977
172bc3938a Store the text encoding in the database (as meta value 4). (CVS 1435)
FossilOrigin-Name: 7f00ca5801889724c0e768961aa15f5ce0b8e7b5
2004-05-22 08:09:11 +00:00
danielk1977
18f4189055 A few bugfixes related to UTF-16 databases. sqlite3_open() still assumes a
UTF-8 database, and sqlite3_open16() still assumes a UTF-16 db. (CVS 1434)

FossilOrigin-Name: b3581d2796c8cb6581b7156774698a05fc8f800e
2004-05-22 07:27:46 +00:00
danielk1977
b1bc95315b Steps towards UTF-16 databases. Some tests are failing because of this
commit. (CVS 1433)

FossilOrigin-Name: c4a8246864eee7cb993ab7b703324d92c284d72a
2004-05-22 03:05:33 +00:00
drh
ab01f61ab8 Update comments and remove dead code from btree.c (CVS 1432)
FossilOrigin-Name: 8069caca82bc4d40d8ac95bafdd91a18a70ab1e0
2004-05-22 02:55:23 +00:00
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