aboutsummaryrefslogtreecommitdiff
path: root/src/expr.c
Commit message (Collapse)AuthorAge
...
* Changes to completely remove all floating point ops if ↵shane2009-02-04
| | | | | SQLITE_OMIT_FLOATING_POINT defined. Note that w/o fp, date/time, round, nan, etc. are all gone or limited in functionality. Updated some of the test scripts to support missing fp and 64-bit functionality. Ticket #3029. (CVS 6250) FossilOrigin-Name: 5cef400023205b55152b91441acc78f9cd8d58a9
* When not compiling for an EBCDIC system, use built-in alternatives to the tolowedanielk19772009-01-20
| | | | | r(), toupper() and other ctype.h library functions. Ticket #3597. (CVS 6196) FossilOrigin-Name: 1041abd6784d283bebf646c54e93599522f7889d
* Remove some unused code from expr.c in order to increase test coverage. (CVS ↵drh2009-01-10
| | | | | 6156) FossilOrigin-Name: 2cbea64fb00a1b5b8aa0e9c958b2a09256ae59bc
* Convert the "~" and "NOT" operators to be two-address instructions.drh2008-12-15
| | | | | Ticket #3541. (CVS 6028) FossilOrigin-Name: ea9b747efb22fd3f679c3ef86ed51986c5ad9436
* Additional work at eliminating silly compiler warnings. (CVS 6010)drh2008-12-10
| | | FossilOrigin-Name: ea01d43788a75e39c7f03c22681d1a338d52cf0e
* Fix a segfault associated with the column cache that occurs on nested VIEWs.drh2008-12-08
| | | | | Ticket #3527. (CVS 5989) FossilOrigin-Name: 490138a2012fcb4c859e1cf12a35e314ec1060d2
* Make use of sqlite3DbMallocSize to maximize the size of growable buffersdrh2008-12-05
| | | | | | after each reallocation. Added new comments and testcase() macros to where.c. (CVS 5981) FossilOrigin-Name: 46f2d08959423e130a5b346138311649d92f0fde
* Fix some compiler warnings that show up when building the amalgamation only. ↵danielk19772008-11-19
| | | | | (CVS 5927) FossilOrigin-Name: d1abe8a1c9a990b02c71d6c249436381c9fde443
* Changes to avoid "unused parameter" compiler warnings. (CVS 5921)danielk19772008-11-19
| | | FossilOrigin-Name: 88134322c36b41304aaeef99c39b4ef5b495ca3b
* Make sure affinities and implicit collation sequences are correctly used by ↵danielk19772008-11-12
| | | | | comparison expressions in the select-list or having clause of an aggregate query. Ticket #3493. (CVS 5889) FossilOrigin-Name: b8ceaa00500f29bbbd0cc5aec71a6ffa91ae6b43
* Fix a bug in the CAST operator associated with the column cache. (CVS 5866)drh2008-11-06
| | | FossilOrigin-Name: 1b6a5140446da896f69fddc8d1ea076815bb45e3
* Disable the result-set alias cache when on conditional code branches.drh2008-10-25
| | | | | | | | 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
* Fix a memory leak on ORDER BY of a compound select caused by the resolverdrh2008-10-11
| | | | | on a flattened query. Also fix a OOM segfault in WHERE clause processing. (CVS 5801) FossilOrigin-Name: d2c252d6bbde4ae14da6c9e6c2683d763d11c59f
* Raise the hard upper bound on SQLITE_MAX_FUNCTION_ARG to 1000 from 100.drh2008-10-07
| | | | | | The default upper bound is still 100, but it can now be raised as high as 1000 at compile-time. (CVS 5780) FossilOrigin-Name: 79df72ee836db91647913055ba6cf55558679b01
* Allow INDEXED BY and NOT INDEXED clauses in SELECT statements. (CVS 5766)danielk19772008-10-06
| | | FossilOrigin-Name: 98ca5580f5acd2e7b3ce512520ec0527f221505e
* Change to reduce the number of OP_Null opcodes in "WHERE <rowid> IN (x,y,z)" ↵danielk19772008-10-02
| | | | | queries. (CVS 5763) FossilOrigin-Name: 33b59a3db0b1797663ae840ceaca1b23a9a9e3b0
* Optimize queries that contain "WHERE rowid IN (x, y, z...)" by using an ↵danielk19772008-10-02
| | | | | intkey btree to store the (x, y, z...) set instead of an index btree. (CVS 5760) FossilOrigin-Name: 803a1736d56b3c07b8ad38715fe0e39196ecc507
* Fix for tickets #3378 and #3381 that preserves the aliasing optimization.drh2008-09-17
| | | | | And yet, this fix feels uncomfortable. Seeking an alternative... (CVS 5712) FossilOrigin-Name: f8b759f1977915c314be874840ebf18e6bc69b57
* Add test cases for ticket #3378 and #3381. Add a temporary hack to get thosedrh2008-09-16
| | | | | | | to problems fixed. The hack causes failures in alias.test, but those are much less serious than the aforementioned tickets. This is a stop-gap until we can figure out a proper fix. (CVS 5711) FossilOrigin-Name: a67da9dd2ff6acc163de4ce2b836b03e3f159a88
* Avoid reevaluating WHERE and ORDER BY expressions that alias terms in thedrh2008-08-29
| | | | | | result set. Ticket #3343. Note that aliased GROUP BY expressions are still evaluated twice. (CVS 5637) FossilOrigin-Name: ab0292caa5887cc1bdc0e8c9d3f3502b83975440
* Remove dead code. (CVS 5601)drh2008-08-22
| | | FossilOrigin-Name: 6de9c084fc533fbb22af6a4cd3e4e9a461b13876
* Enhanced test coverage. (CVS 5598)drh2008-08-22
| | | FossilOrigin-Name: cc36b4e016a1f519ca81d591de3a551ee8aa6813
* Refactor the name resolution procedures in the code generator. (CVS 5569)drh2008-08-20
| | | FossilOrigin-Name: daf730d1defa78fb8b80a78f9108ac35a13e09f6
* Improved clarity of presentation in the tokenizer. (CVS 5545)drh2008-08-07
| | | FossilOrigin-Name: 732657c6a639bdf71a3341f6747d19298d442ddb
* Implement the "lookaside" memory allocation cache. Use of this cache makesdrh2008-07-28
| | | | | | the speed1.test script run about 15% faster. Added new interfaces to control the cache. (CVS 5488) FossilOrigin-Name: e48f9697e9fea339e150ddc32940760027dd07d9
* Make sure expression spans are set correctly for "x.*" expressions in drh2008-07-18
| | | | | the result set of a SELECT. Ticket #3229. (CVS 5438) FossilOrigin-Name: 17a9984e7668be388c4042c070718a02b284a336
* Additional test coverage in select.c and expr.c. (CVS 5381)drh2008-07-09
| | | FossilOrigin-Name: c6cf08477cc4d622a05ad6706cb9418cf7eea432
* Remove obsolete code from select.c, including the "affinity" parameterdrh2008-07-08
| | | | | to the sqlite3Select() module. (CVS 5380) FossilOrigin-Name: cbd3c1585b7a8f8042aa1448fe1be87de056c41a
* Remove redundant code from sqlite3GetTempReg(). (CVS 5342)danielk19772008-07-04
| | | FossilOrigin-Name: 212d05d38c8126f99c028c5ab021b219487fa01e
* Remove references to temporary registers from the compiler column-cache when ↵danielk19772008-07-04
| | | | | such registers are released. Fix for #3201. (CVS 5341) FossilOrigin-Name: f099d6773a837dbe4ba85a8fda818e2d9466e743
* Remove unused variable. Fix a compiler warning. (CVS 5319)drh2008-06-27
| | | FossilOrigin-Name: 0b01ec5cf7725a02d4c12167df125cef578f6219
* Tweaks to the IN expression code generator. Fix an an unrelated bugdrh2008-06-27
| | | | | in the compound SELECT code generator. (CVS 5318) FossilOrigin-Name: a4005782690f022e982df4873779a029b28b9306
* Fix a bug introduced by check-in (5316). Add some VDBE comments todrh2008-06-26
| | | | | the IN expression code generator. (CVS 5317) FossilOrigin-Name: 1043a605e2dcad4b5222674efe392ee9915dc57d
* Avoid generating unnecessary SCopy instructions with the RHS of an INdrh2008-06-26
| | | | | operator is a list of values. (CVS 5316) FossilOrigin-Name: ec80474b1c157a29fb6978dd5575c396c57973b3
* Fix handling of "x IN (...)" and "x NOT IN (...)" expressions when the set ↵danielk19772008-06-26
| | | | | contains an SQL NULL value. (CVS 5314) FossilOrigin-Name: d45a97be71fa61ab4a692bd807ab762130f7f5b9
* Fix a problem in sqlite3ExprIsInteger() causing failures on select1-4.9.2.drh2008-06-24
| | | | | | Other bug fixes in compound-merge. The compound-merge is still disabled in this check-in using "#if 0" due to additional bugs. (CVS 5295) FossilOrigin-Name: 95037e6dbf4ed0ffd38790f3270dcaa4c1ae64ed
* The compound-select merge optimization is mostly working with this check-in.drh2008-06-24
| | | | | | | But there are still a few problems and so the optimization is disabled by and "#if 0". This check-in is to synchronize with the other changes happening in parallel. (CVS 5291) FossilOrigin-Name: e2ba324cbcac0ba35bbde50048677e085abb092b
* Fix a bug in the KEYINFO handling within select.c. Change the OP_Movedrh2008-06-22
| | | | | | | opcode to take a count and to move multiple registers. Initial code for the compound-select merge optimization is added but is incomplete and is commented out. (CVS 5272) FossilOrigin-Name: 663a590e3086145a57af7569d8f798b6b6a8b76c
* Reorganize some of the code that detects expression trees with a depth ↵danielk19772008-06-05
| | | | | greater than EXPR_MAX_DEPTH so that they are detected earlier. This further reduces the opportunities for stack overflow. (CVS 5189) FossilOrigin-Name: 16d4c53a8e4d3cfc1abac3b8bb44d8bfd9471e32
* Allow the SQLITE_MAX_EXPR_DEPTH compile-time parameter to be set to 0 indrh2008-05-28
| | | | | order to disable expression depth checking. Ticket #3143. (CVS 5166) FossilOrigin-Name: 5ceef40e397fc535173996404345b93f695e8cac
* Fix more compiler warnings. (CVS 5074)drh2008-05-01
| | | FossilOrigin-Name: 59568844e774dbe89fd20bbc8f49a3665cc54717
* Always convert IEEE NaN into NULL. Ticket #3060. Add test cases to verifydrh2008-04-29
| | | | | that this is happening. (CVS 5066) FossilOrigin-Name: 9b07e59e510e2de39c2081653662fbc654ca6fbb
* Candidate fix for ticket #3082. Test cases needed. (CVS 5047)drh2008-04-25
| | | FossilOrigin-Name: f6313311ddfb1ee2d6660b9be99afe721a8a9aff
* Fix a crash that can follow a malloc() failure in malloc7.test. (CVS 5042)danielk19772008-04-24
| | | FossilOrigin-Name: 85eedad186327a1f0b0983413b833efd41640d0e
* Fix a code generator bug caused by the new CSE optimization. Add test casesdrh2008-04-15
| | | | | to prevent a recurrence. (CVS 5011) FossilOrigin-Name: d04246a46399e839e70b1bd57e209f80143f0d5b
* Additional reductions in the use of memset(). (CVS 4988)drh2008-04-11
| | | FossilOrigin-Name: 38746c54385e3cb456cda660ea50769b5424db30
* Avoid factoring single-instruction constants that end up getting replaceddrh2008-04-01
| | | | | by an SCopy instruction. (CVS 4952) FossilOrigin-Name: e84ff57b6217afa84d60547dcc3a270b5e116818
* Add the testcase() macro. Additional CSE test coverage. (CVS 4951)drh2008-04-01
| | | FossilOrigin-Name: 492490f9c86e52c7a706d9e1bf0ba216d5bb8aba
* Fix a problem with CASTs and the new CSE mechanism. (CVS 4950)drh2008-04-01
| | | FossilOrigin-Name: e25939fb25ec8bde8500a672ca5be3cbb514ac3a
* Fix the CSE mechanism so that it takes into account column affinitydrh2008-04-01
| | | | | changes that might be imposed by comparison operators. (CVS 4949) FossilOrigin-Name: 91cc646e2b0c1d62a1989405cc9384a2c22d98d0