aboutsummaryrefslogtreecommitdiff
path: root/src/treeview.c
AgeCommit message (Collapse)AuthorLines
9 daysNew debugging interface, callable from gdb or similar:drh-0/+914
sqlite3ShowSelectAsSql(). Similar to sqlite3ShowSelect() except that the output is reconstructed SQL text rather than the AST. FossilOrigin-Name: 7919b2227b685a21e492e4a18dd83b3c33da483e45971edd14f3e65d5406d4df
2026-10-07In the treeview display for Expr, show TK_ASTERISK nodes. Debuggingdrh-0/+4
logic only - not used in production builds. FossilOrigin-Name: 5cf4df16eb23e353834af79ba639e2e17f79d9cd11abcb325f5b7ac7f869b20d
2026-02-07Improved output from calls to sqlite3ShowSrcList() made from a symbolic ↵drh-1/+7
debugger. FossilOrigin-Name: 241d23f8d36a0d4d0bcf058c5c1ff6144cfe7dd33460e8d94de5f0daf56aaf50
2025-08-22Enhance treeview so that it shows the contents of ON clauses whiledrh-1/+5
they are still attached to the SrcItem object and before they are moved into the WHERE clause. FossilOrigin-Name: 3e285bc117bcbfafe083709d27cca776d6ba418a9f0f58a6d4178035fba2d6ca
2025-01-28Simplifh the IdList object to remove unnecessary fields. Performancedrh-15/+1
increases by about 0.8%. FossilOrigin-Name: a4625bb995dd5582d1f3cf0c2e54eb3f01f1cc1405811dda86ebd38b2b858994
2025-01-02Improve the treeview output for CteUse objects.drh-1/+4
FossilOrigin-Name: 2b16d6947ca4a102ddab4d5ba3e340a75e1e5c28e45e874ee5ff52f9b5fb964f
2025-01-02Improvements to the display of subqueries in the FROM clause for treeviewdrh-3/+0
output. (Debug and analysis code only - does not affect production builds.) FossilOrigin-Name: 4a2d65cdcdd3d21bb7d9ea0efb434484f1b8642c2bb6457db58bc2a5f4fc16e5
2024-12-02Slighly less confusing output from treeview during debugging.drh-1/+1
FossilOrigin-Name: 7aef0b93050cdb79cae68361e84047cea2e8e7251d0581ce917da03352bb1f16
2024-11-20Provide the sqlite3ShowWhereTerm() interface callable interactively fromdrh-0/+4
a debugger, when compiling with SQLITE_DEBUG. FossilOrigin-Name: c77a4a42f2e3d16427a69295436efe36335e56e97abd0efba814092498a8dea8
2024-08-21Improvements to treetrace output for subqueries. Debug code only.drh-1/+8
FossilOrigin-Name: 0a835d18d9063b17a1d506fd989ebcf7f0d76593978a3bd5981be59618335f21
2024-08-19Refactor the SrcItem object so that information about subqueries is storeddrh-4/+4
in a separately allocated Subquery object. This reduces the memory requirements for SrcItem and makes the code run faster. It also provides an expansion path for subquery processing that does not burden simple queries. The current checking mostly works, but there are still issues that need to be tracked down and fixed. FossilOrigin-Name: 8ff5dda8448d7e1a533d7f27db2573ce68fa9956b9d9847ced45e83c1f06bab0
2024-08-17Give unique names to fields in the SrcItem object, to facilitate analysis ofdrh-8/+8
how those fields are used using "grep". FossilOrigin-Name: 9f5aeef3cbc2c95267c8f7bf60d5c66971a76789669fb0e8f853273ff6f616f2
2024-07-21Fixes to TreeView debugging output for VALUES clauses.drh-4/+2
FossilOrigin-Name: b6aed8bcb06edc7f0221fd707d5adc227856fe62dbcaae5ffe1fb4faa5c542e1
2024-06-14Do not omit the ORDER BY clause from a recursive CTE just because the drh-3/+9
query that contains the CTE also contains an ORDER BY clause. Plus other changes imported from the recursive-cte-orderby-fix branch. FossilOrigin-Name: 13242289c5d412b706f50fc7e1553032ea3a52d41a3e34e155432adaf0551481
2024-05-23Merge various enhancements that were being held on a branch until after thedrh-1/+2
3.46.0 release. (1) Allow arbitrary expressions in the second argument to the RAISE() function. (2) Performance optimization to the OP_OpenRead and OP_OpenWrite bytecode operators. (3) Allow FTS5 tables to be dropped even if the associated tokenizer is not available. (4) Performance optimizations in FTS5. (5) Generate better bytecode to improve performance of ONEROW scans. FossilOrigin-Name: 1e5385ffc30743412ade1536583504eec36790cac5355042aa1e12d8d2271d1f
2024-05-18Fix the definition of sqlite3_vtab_distinct() such that return codes 2 anddrh-2/+4
3 mean that all rows must be distinct over "colUsed" which is a superset of "aOrderBy". Also, disallow return codes 2 and 3 if the rowid of the virtual table is accessed. FossilOrigin-Name: 922731ce98c0ce7837784ff7966049e59fa73da2aa04abf3506503b6fc4aa048
2024-05-08Allow arbitrary expressions as the second argument to RAISE().drh-1/+2
FossilOrigin-Name: 003e1c8c27824cb917b3869bdf9000f32ff0b6887a2aff8516712cfe865cf34d
2024-04-26Fix the TreeView display of a LIMIT clause on a compound query. Debuggingdrh-1/+1
code only - not part of production builds. FossilOrigin-Name: 38f1e5ce4eedd59fbeb0a0d676d26dfe8a3313189ab9b9e4a5a1ed6721b73a14
2024-04-21Fix an indentation problem in debugging routine sqlite3ShowSrcList(). Nodrh-0/+2
changes to production code. FossilOrigin-Name: 5560df2726fed215c98d602c5f6ebbf3c5ae23f8ba1074291c509bf446fdfe66
2023-11-10Additional debugging information on the tree-dump of the BETWEEN operator.drh-1/+1
FossilOrigin-Name: aca31e49d1d25043769544ccf2a07980c5f162a8eb2486e393bf9d9d1a394a60
2023-10-20Simplifications and optimizations to the Expr object duplication logic.drh-0/+4
The 5x multiplier crutch from [f371e4c0f8ea73ae] is still present. More fixes are still needed. FossilOrigin-Name: 56142a78163b755f16afc05201f623a7a19d9a4b0620a67f7fa20d2a965a288d
2023-10-19In the TreeView logic (used for debugging only) do not show unnecessary fieldsdrh-4/+5
of the Window object when a function has a FILTER. FossilOrigin-Name: d2c6b82c346dbf39e07f09d187e4a8216a56caa7df3dcfafc82e32f676a1db8a
2023-10-18Enhance the parser so that it can accept an ORDER BY clause on a functiondrh-0/+6
invocation. For this incremental check-in, the ORDER BY clause is currently ignored. FossilOrigin-Name: 3a98ff24bf468ed42d410a9a12d9f9b2ca154c7babe99fd6bc6f7b0565e0d132
2023-05-17Fix two assert() statements that failed to take into accountdrh-1/+2
the likely() built-in function. This does not impact production code. FossilOrigin-Name: 8504fe812c5b4956c8acad515d537add54cb591bc81747113f9b24526d7685b8
2023-01-28Show more details about the SrcItem.fg field in tree-trace output.drh-0/+7
FossilOrigin-Name: 3d05dddd0bc826a73a8cecd6b116168082fb46b6e4868d03438c0a5a546d2f97
2022-11-26Show which AggInfo.aCol an Expr node represents in the tree trace debuggingdrh-1/+4
logic. Does not affect production builds. FossilOrigin-Name: b8076f4dc55810855f668dfd4221bdb555cc78c61df200cf0cb87eb137e22850
2022-07-11Fix harmless compiler warnings about unused debugging functions in treeview.c.drh-0/+6
FossilOrigin-Name: 4d6f907712e35eddf6af36eb823c3ccdfcdff1c63b2c224b3bcf34ffec95d511
2022-07-06Fix harmless compiler warnings seen with MSVC.mistachkin-3/+3
FossilOrigin-Name: 61e2094afbbcbd5fdf5c3ec06b96134fafb7b854dc9bfa7d0619bed6d35efbe4
2022-06-22Allow more line with on the debugging output for SrcItem elements in thedrh-2/+2
parse tree. This affects debugging builds only and is a no-op for production builds. FossilOrigin-Name: edbe24e7fc81ab6c26ab05f2231cb46d157d71a677ce8a2983e0c6e48122a2bd
2022-06-08Add restriction (29) to the query flattener - do not allow flattening thatdrh-0/+3
would leave both EP_InnerON and EP_OuterON constraints on the same join term. FossilOrigin-Name: c585d6a4678b04f4cedc08852d01c44cdf52ae2c8ccd1174c3d5a395088bf528
2022-05-13Redefine the acccess rules for the Expr.w union so that the Expr.w.iJoindrh-2/+2
member is accessible on either EP_OuterON or EP_InnerON. FossilOrigin-Name: 6f741d6cfb8831a3ac966257ac4519bcc8156293447bf50323c2d9b170125974
2022-05-13Improved names for flags on the Expr object: EP_FromJoin becamesdrh-1/+4
EP_OuterON and EP_InnerJoin becomes EP_InnerON. FossilOrigin-Name: 1ffea07ff98b894729c698b681cc7433df3bbfccd8a0529a706908602a636937
2022-05-02Organize the various flag bits of the ExprList_item object into a substructuredrh-4/+4
so that the whole lot can be copied all at once. Faster and smaller code. FossilOrigin-Name: 5341d4bbe9a943f9cdbbdea829e18f108e98972ebb706396c50fc62fcc6a6328
2022-05-02Merge trunk fixes into the right-join branch.drh-0/+1
FossilOrigin-Name: e01f4c05c21e89dcc7985e00874f288d9ba5d5d932f7284f8d970bd3145ac0c2
2022-05-02Name resolution and "*" wildcard expansion for parenthesized FROM clausesdrh-0/+1
seems to work the same as PG. The code is chaos, however, and needs some cleanup. FossilOrigin-Name: 6f9c0b07aadc5189c65c3ee4e6938aac10fc0d98f1cb06980f5e5d7b0308f237
2022-05-02Fix a harmless compiler warning in sqlite3TreeViewWinFunc() (a routine thatdrh-0/+1
does not even appear in release builds). FossilOrigin-Name: daff6070039e45df7c47b323a8352e56d1264a7bfb065fe2d79c58454c95a262
2022-05-02Merge the latest trunk fixes and enhancements into the right-join branch.drh-6/+18
FossilOrigin-Name: afbcf075c1e09ae064c7b16e63501cd1d374711812664aef76bd35d02d64a2b6
2022-04-30Defensive code in sqlite3TreeViewWindow() to fix a compiler warning.drh-0/+1
FossilOrigin-Name: b250c218b4b6327a1cae3edbc037625ba998f89ee13a9bfbc2cefd1edfc4b768
2022-04-30Enhance the TreeView debugging output for Expr with opcode TK_IN so as todrh-1/+11
show the RHS table and the subroutine address. FossilOrigin-Name: aec1e4cd59ae874b66335e4f87322fbe31fbb752429e68bf41338db316d0a9ed
2022-04-29With TreeView, only show the table columns for a SrcItem if the data sourcedrh-5/+4
is a subquery rather than a persistent table. FossilOrigin-Name: 7b4a0d0fa1d8facaf5e550650d9b261eda7eb7a2a413627f2751f01c5477e1f3
2022-04-29Multiple enhancements to the TreeView output for SrcItem, cherrypicked fromdrh-2/+62
the right-join experimental branch. FossilOrigin-Name: 293afa81112e824eec2557d004a27319d484276f796936e16d64243fe24f6b68
2022-04-29Show the USING clause as part of the tree-view display of SrcItem.drh-3/+11
FossilOrigin-Name: 9cba3ce577e442f83d7a2d6926e38ffe6bc45953c88ecdd384f3455890303cce
2022-04-28In treeview.c, show the columns of the table associated with each SrcItem.drh-1/+51
FossilOrigin-Name: 3aafccb5c3c780c29090ee5eb428a6c3153627ce8bf834bbd392e79a30e9389b
2022-04-22Add the ability to access the USING columns of the right or left tablesdrh-1/+2
of an OUTER JOIN even if the OUTER JOIN is in parentheses. Prototype code only. FossilOrigin-Name: c3a427575fe71de3061495059e253c72c7213e2925ee2873e4f59fc73bfae103
2022-04-22Honor the MATERIALIZED keyword on a common table expression by not flatteningdrh-0/+4
the CTE into an outer query. FossilOrigin-Name: 8d631a6b9eb06b54b10eda595a4c588ca38f909b4afa653b24d1f720b55d72f7
2022-04-21Ensure correct fg.isNestedFrom values even on crazy parses.drh-0/+1
FossilOrigin-Name: e611e8e62c948d28cd3f28452d3096bab06998a685ed9434061cc2054f5cac32
2022-04-20Improved tracking of nested SELECT objects used to implementdrh-0/+1
parenthensized FROM terms. FossilOrigin-Name: 0da2232624571f4020c05d775ea518514d748fba8dacd4caba2e2e6ed1ae399f
2022-04-20Also show the ENAME_SPAN value in sqlite3TreeViewExprList(), if there is one.drh-1/+0
FossilOrigin-Name: c1d42861778d65f7014c43fbaf09972a69ff0d81bfc2f4720160a989489cf2c8
2022-04-20Improved TreeView output for ExprList: Show the ENAME_TAB value, if theredrh-2/+12
is one. FossilOrigin-Name: eb3f883b45f1bf3f388823360f4aec2d4b8776bfd96185b4fb44b7bc95c62318
2022-04-15Enhance the IdList object to exist in a single memory allocation (rather thandrh-1/+15
a separate allocate for the base object and the array of IDs). Also permit an IdList object to store an Expr pointer together with each name. FossilOrigin-Name: 40f3c95871e6f40f287ef2756abafb8fc56dffdd0af69436e5c7d8e95022d94e