aboutsummaryrefslogtreecommitdiff
path: root/src/tclsqlite.c
AgeCommit message (Collapse)AuthorLines
2026-09-19When binding blobs in tclsqlite3, use sqlite3_bind_blob64() because Tcl 9 ↵stephan-2/+2
allows byte arrays larger than 32-bits and the size argument being passed there is of type Tcl_Size. Discrepancy caught and patched by Jan Nijtmans. FossilOrigin-Name: edb5545003c95e3e388cc8a708e151dcc140765211ef207fe733c95c2a515048
2026-09-15Resolve a 'Tcl_SetIntObj called with shared object' crash in the tcl db copy ↵stephan-0/+3
binding. Reported in the bugs forum on 2026-09-15 but the post was rejected, apparently by the OP, before it was published. FossilOrigin-Name: bcce90fdc1694b6d04bfb8c2bc58af33a0b68b6d4ebb9f993e2168df134d760e
2026-08-15Fix typos. Turn off -fpfmt and -ifmt using "auto" instead of "default".drh-2/+2
FossilOrigin-Name: 530b55da56326f4816d43893d05f57b10541605a9508b0b37c46df21ecd22b76
2026-08-15Refactor "realfmt"→"fpfmt" and "intfmt"→"ifmt".drh-10/+10
FossilOrigin-Name: 17277813d101187d85755b7bad3f1c95380335021e13ee368be0add0c8c346b3
2026-08-14Add support for integer and float-point format strings to thedrh-0/+27
"format" method of the sqlite3 object in the TCL interface. FossilOrigin-Name: 49778c334aaed6d05342a2063cf7f9f8caa1ec9aac0d49ac1db491ddd3d564b5
2026-07-23Change the way pointers are passed between C code and Tcl test scripts. This ↵dan-4/+3
allows tests to be run with Fil-C builds. FossilOrigin-Name: ba919ea1d4fe84526a4c844b3f901e5e8b1650dcdee647e4d46da2d33ced1710
2026-07-08Make the (legacy, deprecated) ".header" command in the CLI responsive todrh-1/+21
the "always" title mode. Clean up title mode and define its operation with improved comments in the TCL interface and in the CLI. Add the "-title auto" option to the CLI. FossilOrigin-Name: f94259fc07cd7856e9c6f81a46689f4f96bbf464fda7f1d11b51a308c296aca0
2026-07-07Continuing work on --rowcount and --title always.drh-8/+16
FossilOrigin-Name: adeb4fbb86a8a781d7efb0eecb9c84ce605d0bd45f63992bf2ecd60765a60d2c
2026-03-21Because version 3.52.0 was withdrawn, that means QRF has never beendrh-1/+1
officially released. Hence the new nMultiInsert field of the spec can be moved out of the extensions area and into the main part of the spec, and the version number can drop back from 2 to 1. FossilOrigin-Name: cf19982241afb17e3db4148b8257f6737141935a291c340ab085c42ed946af1a
2026-03-10Revamp the QRF insert-mode optimization of [659ff6ab55802507]. Thedrh-4/+4
control value is now nMultiInsert. Multiple rows are added to each INSERT statement until the number of bytes in that statement exceeds the nMultiInsert value. The CLI uses a default value of 3000, which provides a good balance between speed and prepare-statement size. The output from ".dump" now loads nearly 2x faster in some cases. FossilOrigin-Name: 55b0ce9f93d68b17a18423f0f751b778573127743a2bac67abfea074ac32d41a
2026-03-10Enhance QRF with the mxTuple field, which if greater than 1 causes thedrh-1/+10
QRF_STYLE_Insert style to group as many as mxTuple adjacent rows into a single INSERT statement. The field is accessible using the -mxtuple option in the TCL interface, and the --mxtuple option in ".mode". The output of the ".dump" and ".fullschema" commands responds to the current --mxtuple setting. FossilOrigin-Name: 659ff6ab5580250707908af003ecd093bd5313f03f21f0efd000a7aff6638b3c
2025-12-10Add the nTitleLimit option to QRF. Also change "line" style so that itdrh-0/+5
uses zColumnSep as the divider between the title and the value. FossilOrigin-Name: d67a299c86ff80ed67857d2546b0edaf852cb23dbfbc15e24793d1c4860a2e50
2025-12-06Update test cases to work with the new box format and with --quote relaxed.drh-4/+4
FossilOrigin-Name: e3f442d08f455e0aa260cc8db4922a5f611e17afe71b0bb251328ab4b3ad46ca
2025-12-06New text rendering style of QRF_TEXT_Relaxed.drh-2/+2
FossilOrigin-Name: d2049bffe6674b8840663b0e5f404a040b715640c87f022517cf11546548fda3
2025-12-02New test cases for QRFdrh-0/+4
FossilOrigin-Name: e49c63e31888c6787ab13f736d58ff985a24c3f98b475e05c30e8b244afffb80
2025-11-26Add the bBorder option to the QRF spec. Reflect this in the -borderdrh-1/+6
option on the TCL format method, and the --border option to ".mode" in the CLI. Also add the "psql" mode to the CLI. FossilOrigin-Name: 02cbeb69884cd884d9b1b5f59c4168a3dc24b1a5aecc6967586c0be350b10574
2025-11-25Omit the unused bTextNull flag from the QRF spec object.drh-5/+0
FossilOrigin-Name: 4bbf176a87b1bedcce0359b70bbf6831a1e458d48c91dcba49f5e00bb38ecaa1
2025-11-24Add the QRF_BLOB_Size encoding for BLOBs in QRF.drh-2/+4
FossilOrigin-Name: bafff695d34202377b937cb4ca9f8a7611ae286d9ab927e6c71faa3cd99496e5
2025-11-22In QRF, change the name of the bWrapSnglCol flag to bSplitColumn.drh-4/+4
Similar changes to the TCL interface. FossilOrigin-Name: 76512b3b80fdcaae22340cde0b69857e2a4d7e86a63c6759465bd8a0bcbf82bc
2025-11-22Implementation of bWrapSnglCol in QRF.drh-2/+9
FossilOrigin-Name: 4bbd3f7ead50c0babd7843f58972e2e1762a84866cc4ed88a2a74375b13da11c
2025-11-12Rename QRF_STYLE_JsonLine to QRF_STYLE_JObject. Add new convenience modesdrh-2/+2
to the CLI and generally refactor and improve the ".mode" command. Some tests are failing, mostly due to changes in error message output and similar. FossilOrigin-Name: 4c8109682e3a224fd8e015e73a9c1c7b6d56ad747d7ca7bc387bb92e1c98f731
2025-11-11Minor refactoring of some field names in the sqlite3_qrf_spec object, to trydrh-32/+30
to make the names more intuitive, memorable, and succinct. FossilOrigin-Name: 3450bc7eecb717abedbaeb56dc824e14eb35ed30322fe3dd3b4b1cbd5fd14c60
2025-11-10Add the bTextNull field to sqlite3_qrf_spec. Use QRF to implement "tcl"drh-3/+9
mode in the CLI. FossilOrigin-Name: 2ba92320db3c16c3c91e29ea935ae92da546261f25846d242bd2dd27e0b7e032
2025-11-08Name changes. QRF_TEXT_Off becomes QRF_TEXT_Plain. mxTotalWidth becomesdrh-6/+6
nScreenWidth. FossilOrigin-Name: 871567e377e976e0bb191d466019d1d4abe126f2da1880f1e25cd92b06a666d1
2025-11-08Improvements to QRF_STYLE_Line. Make it responsive to mxTotalWidth anddrh-1/+6
mxRowHeight. Indent subsequent lines appropriately. Add corresponding test cases. FossilOrigin-Name: 23ddc38cf19845a385c8b33002805c3c864ab9b2e36c3d609794444b06d20c89
2025-11-08Miscellaneous fixes to the new alignment configurations.drh-3/+3
FossilOrigin-Name: 787fb4c2ac80db6552bc7a740c3c3c63c0c8414cb4e7db80d367b4b5512519d0
2025-11-08Separate column width specification from cell alignment.drh-25/+91
FossilOrigin-Name: 5dadfd7f41764ddfed39bb49bbde3a54d8f282bb494c9c2abbba37d0995a7f8e
2025-11-07Rename "mxWidth" to "mxColWidth". Add "mxTotalWidth" and "mxLength"drh-4/+19
settings and hook them up to the TCL interface, but those settings are not yet implemented. FossilOrigin-Name: 3f327e8fbc295b43c79118f8f49f8d2e20c2f3ac96e3b7f996720dab858d8199
2025-11-07Add the JsonLine output style.drh-6/+8
FossilOrigin-Name: 7dfba841cfc515ac28401c4eb90ec24e04fd52cddaeae41be3cfa6967dac0eac
2025-11-07Fix the size of an integer in the TCL interface.drh-1/+1
FossilOrigin-Name: 04156c34e4efeebe9b8c2ee2944f9576b685c6aa7e6180c8a5caff4958cde2e8
2025-11-06Revamp so that Explain and Eqp styles force the statement into thedrh-5/+5
the appropriate explain-mode for the rendering and restore it afterwards. Add the new scanstatus styles: Stats, StatsEst, and StatsVm. FossilOrigin-Name: 128f1149076ef00c567405ea2112be0ae665b12e81672ae5494d82af11633af5
2025-11-05More test cases and a bug fix.drh-1/+1
FossilOrigin-Name: 9a9c4580772fa35a68b3e27a40fc9bc615144979dfd27b1054538e29a489c024
2025-11-05Further testing and bug fixing.drh-10/+92
FossilOrigin-Name: d6b1bac15a692a69f3707fca721b57b3b283edb3850efa34ba42b02c3669fc71
2025-11-05The TCL interface for QRF is now feature complete (at least until I thinkdrh-11/+101
of new features to add). There is still a lot of testing, bug-fixing, and documentation to be done, however. FossilOrigin-Name: 633fe4fe584ae14ed6ced1ae137bf96a434a012423d70f0f93876737b0ca075c
2025-11-05New style setting QRF_STYLE_Auto which chooses box, explain, or EQP dependingdrh-35/+15
on the statement to be rendered. Improvements to memory management. Updates to the documentation. FossilOrigin-Name: 468ba188f034b23398e1f07b915cf7c8b337dcf7f56a13511947c5322ae98722
2025-11-05The new "format" method in the TCL interface is now partially functional.drh-2/+84
FossilOrigin-Name: ace1ebda08740bb248c009cc4a6c99da318a2bba3e43ef20bd0c365c5021705f
2025-11-05New build product "tclsqlite-ex.c" is the tclsqlite.c file with QRF added.drh-17/+56
This is now used whereever tclsqlite.c was used. Hence QRF is now in the testfixture and in the tclextension. The sqlite3 method is "format". That method is currently just a non-functional stub. FossilOrigin-Name: e08d21fe1365176f268f1dcca4048fb5ff043356e5817c8622b4ed9a1a5a58cf
2025-05-31tcl extension: UDFs may now 'break' to return an SQL NULL. Add the (eval ↵stephan-41/+97
-asdict) flag to use a dict, instead of an array, for the eval row data. FossilOrigin-Name: 413a626b5c7902c1810142536c36e4ea8ee7c616ea82dfe1114199f9319091f7
2025-05-26tclsqlite.c doc typo fix.stephan-2/+2
FossilOrigin-Name: de0dfac1e5ca9d2661674c20664095386f60c77378311507fcba08111df52b38
2025-03-27Fix for forum-post [/forum/forumpost/b5fde3596c|b5fde3596c]. Also fix ↵jan.nijtmans-7/+12
encoding issue for non-ASCII characters. Also includes a fix from Stephan Beal, about a missing <stdint.h> include. FossilOrigin-Name: e60198001e12f85a5d6504ce72226dfceb8666fe5ec649237fa23ae20e8aa32d
2025-03-04tclsqlite3 patch from Christian Werner: replace FILE handles with TCL ↵stephan-7/+12
channels for the db copy command. FossilOrigin-Name: ea1f7f8de4abb80fe41a115c9f601ff27cd728493640c6d47d868913feec28dc
2025-03-04Minor doc typo fixes via [forum:65bd941da8|forum post 65bd941da8].stephan-1/+1
FossilOrigin-Name: 6f6a03e93cf58eaee79603de0b28ad34c872fb4b4b7d9c4e7fe35c698b27618a
2025-01-30Remove an unused parameter from an internal-use subroutine in the TCL interface.drh-2/+2
FossilOrigin-Name: a700692b39e24f5ca9ea6f879d413e20c2ad2b85f62c867407dafe111f13d931
2025-01-30Improvements to the TCL interface for Tcl9 as suggested by Jan Nijtmans.drh-1/+3
FossilOrigin-Name: d76c5db866de2732b68401a4c3e39acddc7a99bed965160c1796477c062b478a
2025-01-21Use Tcl_GetString() instead of Tcl_GetCharLength() to test for a zero-lengthdrh-1/+1
string in the TCL interface, since that is much more efficient. FossilOrigin-Name: a8d9dcfd23fbfcd887e451382836c1e88215984cc01e00be11387dbf4ab26fd8
2025-01-07Improvements to [14b38ae6ab86a314] so that the Tcl interface is better abledrh-6/+7
to work with boolean values in both Tcl86 and Tcl90. FossilOrigin-Name: 4e85343d6107a46682b549667410c296d7f4d17e3ac04ded7357afcbbfbe3e6d
2025-01-07Make the TCL extension aware of the booleanString type within TCL.drh-1/+4
FossilOrigin-Name: 14b38ae6ab86a314a63ca9513850b43fcc670864f94d03a2706eff469980da88
2025-01-07Fix a typo in the previous check-in.drh-1/+1
FossilOrigin-Name: 7d41885e85b0e2ef28bac34d663af07c35b21ee3e8b14481d2371f623bce681d
2025-01-07Minor fixes to tclsqlite.c to promote portability.drh-2/+3
FossilOrigin-Name: dd934f032fa6fc790a951006512e3ed76a5f2930858932918eafdbe3ceec4620
2024-12-09Make the TCL interface more rebust against very large strings comingdrh-3/+5
out of TCL9. FossilOrigin-Name: e2bae4143afd07de1ae55a6d2606a3b541a5b94568aa41f6a96e5d1245471653