158 Commits

Author SHA1 Message Date
danielk1977
93cd039570 Minor fixes for UTF-16 databases. (CVS 1770)
FossilOrigin-Name: 6c5c11e07e157c15cf99078fce2a1bc478e287ce
2004-06-30 02:35:51 +00:00
drh
e970767144 Fix signed integer problems in vxprintf. Ticket #778. Also remove some
dead code from util.c. (CVS 1685)

FossilOrigin-Name: 200cd3baf60e6cfad9fa3971834367821456ae30
2004-06-25 01:10:48 +00:00
danielk1977
9e6db7d70f Ensure sqlite3ErrorMsg() is used to report errors during compilation,
sqlite3Error() during execution. Also remove unused param from
sqlite3VdbeReset() and Finalize(). (CVS 1647)

FossilOrigin-Name: 7a33daef5b49b1f2d89f27e0063372fe4f1702c8
2004-06-21 08:18:51 +00:00
danielk1977
96d81f99d4 Update sqlite3_close() API to match documentation. (CVS 1630)
FossilOrigin-Name: 61819740fe8916892afe502196bb8b75a51f81e8
2004-06-19 03:33:57 +00:00
drh
38f8271f81 Changes to allow libsqlite3.a and libsqlite.a to be both linked into the
same program at the same time. (CVS 1621)

FossilOrigin-Name: 2590fffcaa92adc619f7a927d2b5169d8dfef50a
2004-06-18 17:10:16 +00:00
danielk1977
bfd6cce56b Optimisation for unicode encoding conversion routines. (CVS 1614)
FossilOrigin-Name: 39a415eaa65964742e40b7ea4d471fa04007c6c9
2004-06-18 04:24:54 +00:00
danielk1977
eac7a362f6 Fix two more memory leaks. (CVS 1603)
FossilOrigin-Name: 98b48704a1ce983677cdb269c24f7bca4ed606f7
2004-06-16 07:45:24 +00:00
danielk1977
dc8453fd7a Use the SQLITE_UTF* symbols instead of the old internal TEXT_Utf* symbols. (CVS 1572)
FossilOrigin-Name: 9b84f2f488e1d37ba1a4c4cf31490bcbba0f6edd
2004-06-12 00:42:34 +00:00
drh
faa57acc9f Change the MEMORY_DEBUG macro to SQLITE_DEBUG. (CVS 1546)
FossilOrigin-Name: 428b685b7174ef4589176def1028ad1c9461ff7e
2004-06-09 14:01:51 +00:00
danielk1977
0202b29ef7 Some progress on user-defined collation sequences. (CVS 1544)
FossilOrigin-Name: c634e71f1909819fb55c728bc410e5cc390428e3
2004-06-09 09:55:16 +00:00
danielk1977
ad7dd42558 Performance improvements for LIKE. It is still too slow though. (CVS 1535)
FossilOrigin-Name: 30b81507fc404355751705c6f9856c178249eff1
2004-06-06 12:41:49 +00:00
danielk1977
d02eb1fdf4 Enhance user function API to support association of meta-data with constant
arguments and the specification of text encoding preference. The LIKE
operator takes advantage of both. (CVS 1534)

FossilOrigin-Name: 92337d8f79b9754cd61c73e7db2e792a1f482f50
2004-06-06 09:44:03 +00:00
drh
df0148931d Remove the sqlite3_libencoding() api and the ISO8859 encoding option. (CVS 1523)
FossilOrigin-Name: b53640ed2232aaf173a71636073477d80407d11f
2004-06-02 00:41:09 +00:00
drh
e51c44f481 Various speed enhancements. (CVS 1498)
FossilOrigin-Name: a0db15bba64af0c529d5be366659bca1165ff21b
2004-05-30 20:46:09 +00:00
drh
51846b56ed Factor common code for generating index keys into a procedure. Other
speed improvements and bug fixes. (CVS 1487)

FossilOrigin-Name: 6661bb5f9c1692f94b8b7d900b6be07f027e6324
2004-05-28 16:00:21 +00:00
danielk1977
cbb18d2256 Allow CREATE TABLE and CREATE INDEX on attached databases. (CVS 1483)
FossilOrigin-Name: 4984a130ccf3b8e486941a5d0d0cc70a691f0dac
2004-05-28 11:37:27 +00:00
danielk1977
3fd0a736bf A couple of test cases and fixes for blob literals. (CVS 1474)
FossilOrigin-Name: 6d552af67cf6fa6935373ba39de5c47ebf613eb9
2004-05-27 13:35:19 +00:00
danielk1977
c572ef7fcd Various bugfixes. 68 Test cases still fail. (CVS 1471)
FossilOrigin-Name: 67a140cf78d99e38ccd94751c4f8ead1a2b96859
2004-05-27 09:28:41 +00:00
drh
f44795013f Fixes to the MEM changes. The library now links. (CVS 1470)
FossilOrigin-Name: f33d15d95f195e26e1ef396158597a2caa06f374
2004-05-27 03:12:53 +00:00
drh
eb2e176a12 More MEM changes in the vdbe.c. Still will not compile. (CVS 1469)
FossilOrigin-Name: dbdd1a7f316e576d0611748ec63c9ef00d4c10db
2004-05-27 01:53:56 +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
6622cce372 Add some more elements of the new API. (CVS 1416)
FossilOrigin-Name: 2821767b947ae1a70e98dd7f47d69e424c37947f
2004-05-20 11:00:52 +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
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
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
6d2fb15475 Optimized varint routines and tests added. (CVS 1380)
FossilOrigin-Name: d4e0933dc72b66157164610e0b03f339bc535fb9
2004-05-14 16:50:06 +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
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
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
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
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
4adee20fcb Change lots of internal symbols from sqliteXXX to sqlite3XXX so that the
library links again. It doesn't work yet, due to changes in the btree layer
calling convention. (CVS 1324)

FossilOrigin-Name: 8af6474c49263ae26216dff9465b33f76b500cf4
2004-05-08 08:23:19 +00:00
drh
3aac2dd7bc Pager tests working. (CVS 1308)
FossilOrigin-Name: 910067a200c4b25b5d813a84146673d3d1c80952
2004-04-26 14:10:20 +00:00
drh
eb9a9e8888 Code cleanup in the date and time functions. (CVS 1263)
FossilOrigin-Name: 9b3bcde1530091602e551435ffd7820eb79727d5
2004-02-22 17:49:32 +00:00
drh
5f968436e6 Cleanup the printf code to make it smaller and more modular.
Fix a memory leak in the new OP_ContextPush opcode. (CVS 1258)

FossilOrigin-Name: 2756f7af3382fa9d186ab99cf76f469fb891a3c3
2004-02-21 19:02:30 +00:00
drh
912184b0cf Make it safe to call sqliteMalloc() with a request for 0 bytes. Ticket #534. (CVS 1164)
FossilOrigin-Name: 6c858db2c099c7ba73d72e02b19bf6173620db13
2004-01-07 03:41:03 +00:00
drh
384eef32fd Use "long double" to hold intermediate values when doing ascii to binary
and binary to ascii conversions of floating point numbers. (CVS 1162)

FossilOrigin-Name: 8371f662d22be0a3c58e0503c7511faea1640955
2004-01-07 03:04:27 +00:00
drh
202b2df74a Fix problem in the code generator were incorrect code was being created if
the SQL source contained a negative integer that was too large to fit in
a 32-bit signed integer variable.  Ticket #552. (CVS 1157)

FossilOrigin-Name: b8381d9fe99273507e8626638110646801afef06
2004-01-06 01:13:46 +00:00
drh
93a5c6bdf4 Use a built-in atof() function instead of the one from the library to
avoid problems with locale.  Ticket #305. (CVS 1144)

FossilOrigin-Name: 4d9edbc50f7dee64edbadad2e2dc4f93d8248b3b
2003-12-23 02:17:35 +00:00
drh
8548a059ff Comment changes to the lemon parser template. Change some sqliteMalloc() calls
to sqliteMallocRaw() for speed.  Update the website template. (CVS 1114)

FossilOrigin-Name: c637caf13f579959ecdb6b134d0114e8efbcac60
2003-10-22 22:15:27 +00:00
drh
03ab7336cd Fix a bug in sqliteRealloc() that only occurs if there is memory corruption
and debugging is enabled.  Ticket #421. (CVS 1086)

FossilOrigin-Name: eebc82b77dbf35a18d2eae47336038d4b67806c6
2003-08-26 11:29:07 +00:00
drh
4305d10360 The {quote: SrcList} object was not being expanded correctly by a call to
sqliteSrcListAppend() if the {quote: SrcList} had previously been duplicated by
a call to sqliteSrcListDup().  Ticket #416. This check-in fixes that problem
by keeping a separate nAlloc field on {quote: SrcList}.  A similar change is made
to {quote: IdList} and {quote: ExprList} to avoid future problems. (CVS 1067)

FossilOrigin-Name: da6273255471673841fdcadc688aeac80722e130
2003-07-30 12:34:12 +00:00
drh
8649d6a1a8 Remove unused code from util.c. (CVS 1006)
FossilOrigin-Name: 1bcaa841a396e4d592de30d10846f7cefbbdcd0e
2003-06-05 14:27:56 +00:00
jplyon
02be20d4f5 Added comments. (CVS 993)
FossilOrigin-Name: 1276ddb3074b74e22c579bad6951ea52384c08dd
2003-06-02 06:17:10 +00:00
drh
5364f60302 Make sure hash functions always return non-negative. (CVS 969)
FossilOrigin-Name: 39a3e403f0440acb2f85a064ec23d404f9cdfbc4
2003-05-12 23:06:52 +00:00
drh
cab20050bb Fix for ticket #297 - bug in sqliteSortCompare(). (CVS 917)
FossilOrigin-Name: 4ded1965eb83dee0f28c27ba935d615c77331571
2003-04-18 17:45:14 +00:00
drh
bb07e9a34f Simplify the number processing code. Fix for ticket #281. (CVS 910)
FossilOrigin-Name: 4326b52a39cad4632dc2db37aa53a285a31af138
2003-04-16 02:17:35 +00:00
drh
665de47ac3 Minor follow-on changes to the recent ATTACH patch. (CVS 892)
FossilOrigin-Name: e80afe75b33d4eacb40ef6128cf688f7c3253984
2003-03-31 13:36:09 +00:00
drh
da93d238c2 Add the sqliteErrorMsg() function and use it to generate error message
text during parsing and code generation.  This simplifies the code
somewhat and makes it easier to handle names with a database prefix. (CVS 891)

FossilOrigin-Name: 1d3fc977211abdc7ba3fd51d661863e8ce5aef69
2003-03-31 02:12:46 +00:00