0
0
mirror of https://github.com/tursodatabase/libsql.git synced 2025-05-21 20:08:13 +00:00

Commit Graph

  • 38c9860a0a stats: update query threshold only if the list is full Piotr Sarna 2023-10-26 12:39:35 +02:00
  • 4f4b32b111 libsql-server: track slowest queries too Piotr Sarna 2023-10-24 15:47:39 +02:00
  • 5165905136 proxy: silence spammy "0 items garbage-collected" logs Piotr Sarna 2023-10-26 11:00:13 +02:00
  • 634b037fa3 Cure a harmless MSVC warning. (no other changes) larrybr 2023-10-25 20:44:01 +00:00
  • 63aff62e69 In CLI for Windows builds, do MBCS/UTF-8 translation independently for input and output. (WIP) larrybr 2023-10-25 20:27:18 +00:00
  • 799e743333 Updates to the mktoolzip.tcl to work on win32. dan 2023-10-25 20:08:21 +00:00
  • 0776da771c wip lucio/serverless Lucio Franco 2023-10-25 15:45:44 -04:00
  • 208f5c65d4 Fix harmless compiler warnings. drh 2023-10-25 19:06:23 +00:00
  • d91884586a Provide dummy parameter names in the prototype for the new xIntegrity method of the sqlite3_module object. drh 2023-10-25 18:53:00 +00:00
  • 1d91f8619b Fix minor problems with the "showwal" utility program. Add a missing header to the zipfile.c extension. drh 2023-10-25 18:35:48 +00:00
  • b7086c48b6 Test module altermalloc3.test requires DQS_DDL to be turned on. drh 2023-10-25 17:26:11 +00:00
  • 47a484d8ed Add an ALWAYS on branch that was made always-true by the DISTINCT ORDER BY fix. drh 2023-10-25 15:30:11 +00:00
  • 8f99cb9ad6 When doing a DISTINCT aggregate that contains an ORDER BY, only the arguments to the aggregate need to be distinct, not the ORDER BY terms. drh 2023-10-25 14:54:16 +00:00
  • a9a7d118f6 Fix the amalgamation generator so that when it is reporting the Fossil version number in the header comment of the amalgamation, it does not elide the first hex digit of the version hash. drh 2023-10-25 12:58:06 +00:00
  • d08eeeed64 Merge pull request #503 from pjhades/fix-shell-panic ad hoc 2023-10-25 12:17:26 +00:00
  • 9f20bde65a Enhance the new xIntegrity method of the sqlite3_module object with new parameters that provide the name of the table being checked and a flag to indicate a "quick_check". Based on feedback in [forum:/forumpost/965c0d02ea|forum post 965c0d02ea]. drh 2023-10-25 10:37:11 +00:00
  • f4154879eb Implement check-in [477577120b897bf1] differently, so as not to disrupt non-standard build configuration. See [forum:/forumpost/c11523ca2df50293|forum post c11523ca2df50293]. drh 2023-10-24 19:56:57 +00:00
  • 85b1f5c2f6 Test cases for COLLATE and NULLS FIRST/LAST in the ORDER BY for an aggregate function. drh 2023-10-24 17:45:11 +00:00
  • 9d486435f1 New #ifdefs to fix certain compile-time options. drh 2023-10-24 16:16:27 +00:00
  • 3da982635c Fix a problem with the fts5 highlight() and snippet() functions when used with tokenizers like "trigram" that output overlapping tokens. Forum post [forum:/forumpost/63735293ec|63735293ec]. dan 2023-10-24 16:06:56 +00:00
  • d548f74024 Fix a problem with the fts5 highlight() and snippet() functions when used with tokenizers like "trigram" that output overlapping tokens. Forum post [forum:/forumpost/63735293ec|63735293ec]. dan 2023-10-24 15:53:02 +00:00
  • bdcae89358 Spelling improvements, in comments only larrybr 2023-10-24 15:11:55 +00:00
  • da67619d97 Spelling improvements, in comments only larrybr 2023-10-24 15:07:28 +00:00
  • c0ba6a97ec Fix various harmless scan-build warnings. drh 2023-10-24 11:06:44 +00:00
  • eb9882d7d1 Fix a harmless compiler warning in the expert extension. drh 2023-10-24 09:57:54 +00:00
  • af74c2740d Merge pull request #505 from psarna/preemptboundary Piotr Sarna 2023-10-24 10:29:48 +02:00
  • 3c29e801ee replication: do not preempt streams at transaction boundary Piotr Sarna 2023-10-24 09:32:12 +02:00
  • e15da4e1cb Merge pull request #486 from psarna/topk Piotr Sarna 2023-10-24 08:57:27 +02:00
  • 13e69440fb Fix a minor typo in the previous. drh 2023-10-23 23:34:53 +00:00
  • 043768ce5a Add notes on how to build a statically linked version of sqlite3_analyzer.exe. drh 2023-10-23 23:34:24 +00:00
  • 811bece3f7 Add the sqlite3res file to the Windows build of sqldiff.exe so that the resulting binary shows the SQLite icon. drh 2023-10-23 19:51:16 +00:00
  • ec64b5f21f libsql-shell: fix panic on empty statement Jing Peng 2023-10-23 12:00:37 -04:00
  • 4fecc81e20 Avoid attempting to delete a file while it is open in test script sessionalter.test. dan 2023-10-23 15:30:38 +00:00
  • 2db02ec245 Revert an earlier change that considered passing a NULL callback to sqlite3_preupdate_hook() to be a misuse. This is required to clear the preupdate hook altogether. dan 2023-10-23 15:24:44 +00:00
  • 8c86f56e90 New test cases for PRAGMA integrity_check against FTS4 and FTS5 tables. drh 2023-10-23 15:23:10 +00:00
  • fd05978a1e Fix mutex1.test to take into account that the prng mutex is not (as of [c84e4483cb4]) taken when writing a header to an in-memory journal. dan 2023-10-23 14:24:09 +00:00
  • 45b2e946cc Improved error messages for the xIntegrity method in FTS3/4 and FTS5. drh 2023-10-23 13:46:22 +00:00
  • bd8941a4f8 Fix sqlite3ExprDup() alignment assertions so that they work on 32-bit platforms. drh 2023-10-23 12:16:27 +00:00
  • b3752910a4 sqld: use unexpanded SQL for top queries Piotr Sarna 2023-10-23 14:00:23 +02:00
  • f49d52d642 Temporarily disable the ext/expert/expert1-6.0 test, which does not work on my configurations. drh 2023-10-23 11:41:41 +00:00
  • 3f81c3264a Add an SQLITE_OMIT_VIRTUALTABLE block around the new vtab code in "PRAGMA integrity_check". dan 2023-10-23 11:34:24 +00:00
  • 06700d77c2 Add missing test file fts3fault3.test. Should have been part of [7f41d700]. dan 2023-10-23 11:18:13 +00:00
  • 4fcddf8d66 libsql-server,admin: add top-k queries to stats Piotr Sarna 2023-10-20 12:53:13 +02:00
  • 409548b047 Merge pull request #498 from pjhades/main Piotr Sarna 2023-10-23 11:15:02 +02:00
  • cf41bcc542 Merge pull request #494 from TehShrike/patch-1 ad hoc 2023-10-23 08:17:45 +00:00
  • 47b496868c Merge fixes for expert handling of UDFs and other UD-whatevers. larrybr 2023-10-23 02:08:34 +00:00
  • 334b6fe418 Add missing JNI sqlite3_result_subtype() binding. stephan 2023-10-23 02:06:27 +00:00
  • aa040d891f Fix the shell1.test test so to align with the new behavior imposed by [bce807cd48763273] - that backslash escapes only work without quoted arguments in dot-commands of the CLI. drh 2023-10-23 02:01:14 +00:00
  • 81be0d26bb Clear some picky warnings, sync w/trunk. larrybr 2023-10-23 01:55:35 +00:00
  • 90a5617b55 Add many more high-level wrappers to the JNI wrapper1 API. Correct the JNI bindings of sqlite3_strglob/strlike() to compare as the core lib does if their glob argument is NULL and the other is not. stephan 2023-10-23 01:34:17 +00:00
  • 5e6dde3b35 Fix [f5c01676fd281e93] so that it always preserves 8-byte alignment for Expr objects. Add new assert() statement to verify this. drh 2023-10-22 23:44:32 +00:00
  • 96aa4d344d Add high-level window function wrapper to the JNI wrapper1 interface. stephan 2023-10-22 23:36:16 +00:00
  • de6a4d8ac4 libsql-shell: add --echo flag Jing Peng 2023-10-22 15:11:15 -04:00
  • a63539143d Do not do backslash excape processing on any unquoted strings in dot-commands in the CLI - on Windows or on posix-like systems either one. This brings the processing into alignment with the documentation, allows backslash-delimited filenames on Windows (as long as they are unquoted), and causes the CLI to work the same with regard to backslash escapes on both Windows and posix. drh 2023-10-22 17:27:55 +00:00
  • 166c8d0067 JNI: flesh out and simplify the APIs for binding and fetching arbitrary Java objects. stephan 2023-10-22 14:25:37 +00:00
  • 32a0d6129f JNI: add column-get bindings to the wrapper1 Stmt class and extend the AggregateFunction tests to ensure that the aggregate context is honored. stephan 2023-10-22 13:54:26 +00:00
  • 4598b6e5ae Add API_ARMOR to sqlite3_clear_bindings(). stephan 2023-10-22 13:09:37 +00:00
  • 4bcde614d8 Add JNI wrapper1.SqliteStmt.bindXyz() APIs. stephan 2023-10-22 12:43:30 +00:00
  • 28f45b1ab1 JNI: improve UB protections in sqlite3_bind_blob/text/text16(). stephan 2023-10-22 12:33:05 +00:00
  • 6e4ef06ca1 Add missing ScalarFunction.java to JNI build. stephan 2023-10-22 11:11:54 +00:00
  • 06f4dc7edb In the CLI, do not translate unquoted backslash escapes on dot-commands as that can damage filename arguments. drh 2023-10-21 22:31:00 +00:00
  • d2c737f2e4 Remove a branch that cannot affect the outcome from FkNoAction processing in fkey.c. Replace it with an assert(). drh 2023-10-21 20:34:57 +00:00
  • 76bd238a66 Replace the patch at [5cb61c6788d7c017] with a better way to avoid failing PRAGMA integrity_check if a module implementation is not loaded, as the use of suppressErr can lead to problems. drh 2023-10-21 20:03:44 +00:00
  • bbf2057467 Merge pull request #495 from tursodatabase/fix-readme-links ad hoc 2023-10-21 18:17:05 +00:00
  • ef6bf1bbe5 Fix a problem allowing a COMMIT following an OOM to cause fts3/4 corruption. dan 2023-10-21 18:12:07 +00:00
  • 52a484cdfd fix link in README ad hoc 2023-10-21 20:04:45 +02:00
  • 336b9c98b2 Fix links to doc pages Josh Duff 2023-10-21 11:50:50 -05:00
  • da4cfde031 Add the SQLITE_TESTCTRL_FK_NO_ACTION test control. Make it available in the CLI. Fix a minor problems with SQLITE_CHANGESETAPPLY_FKNOACTION in sessions. drh 2023-10-21 16:33:20 +00:00
  • 5c8cfe9617 Extra comment on the implementation of SQLITE_TESTCTRL_FK_NO_ACTION, warning about the need to reset the schema in order for the setting change to take full effect. drh 2023-10-21 16:25:44 +00:00
  • fcef73a787 Add missing "finish_test" to sessionnoact.test. dan 2023-10-21 15:21:06 +00:00
  • ca9dc173a2 Fix a problem with SQLITE_CHANGESETAPPLY_FKNOACTION and the foreign-key-trigger-cache. dan 2023-10-21 15:04:24 +00:00
  • 51b358e5e5 Add SQLITE_TESTCTRL_FK_NO_ACTION. drh 2023-10-21 12:54:37 +00:00
  • a35a54b824 Adjust an EXPLAIN QUERY PLAN output in scanstatus2.test to account for a different loop order taken due to the removal of the view-scan optimization. drh 2023-10-21 11:43:54 +00:00
  • 813159e2ea Compress the content of the status line in testrunning.tcl so that all the same status information appears but with less punctuation and with "zero" values omitted, so that the status line will fit comfortably on an 80-column terminal window. drh 2023-10-21 11:34:59 +00:00
  • 531ca6058e Create the new string_agg(X,Y) aggregate function which is an alias for the two-argument group_concat(X,Y) function, for compatibility with SQL-Server and PostgreSQL. drh 2023-10-21 11:13:47 +00:00
  • 266e5d034b Avoid an unnecessary malloc() for the page usage bitmap when running a partial integrity_check. drh 2023-10-21 11:06:03 +00:00
  • 51bb5dec6c Fix a test case broken by the previous check-in. drh 2023-10-21 11:00:57 +00:00
  • a5bbe0a190 Merge pull request #492 from tursodatabase/remove-useless-dir ad hoc 2023-10-21 08:12:02 +00:00
  • 46dc4f7c87 remove useless dir ad hoc 2023-10-21 10:00:05 +02:00
  • d5e040b6f0 Add string_agg(X,Y) as an alias for group_concat(X,Y), for compatibility with SQLServer and PG. drh 2023-10-20 20:19:30 +00:00
  • 71bae9f19f Fix a problem allowing a COMMIT following an OOM to cause fts5 corruption. dan 2023-10-20 19:59:12 +00:00
  • aba5bd3702 Switch to scccache lucio/caching Lucio Franco 2023-10-20 12:35:35 -07:00
  • 201c030dd0 Merge pull request #489 from tursodatabase/lucio/fix-pr-publish Lucio Franco 2023-10-20 19:16:20 +00:00
  • 81656b15c9 Fix PRAGMA integrity_check so that it does not raise an error if the schema contains a CREATE VIRTUAL TABLE that does not have its module loaded. drh 2023-10-20 19:06:04 +00:00
  • 5745fdc6dc Fix PR image builds Lucio Franco 2023-10-20 10:22:13 -07:00
  • 1853344155 wip lucio/test Lucio Franco 2023-10-20 11:31:48 -07:00
  • f4b6ee5bf2 wip Lucio Franco 2023-10-20 11:13:03 -07:00
  • 472b6d874d remove cache options for PR builds Lucio Franco 2023-10-20 11:11:03 -07:00
  • e98f62fb3f Omit some redundant calls to strlen() used to find the size of Expr.u.zToken in sqliteExprDup(). This inefficiency was seen while working on the previous check-in, and I thought it best to fix it while it was fresh in mind. drh 2023-10-20 18:09:08 +00:00
  • fd2e05946c Reduce pr image to shorter sha Lucio Franco 2023-10-20 10:22:13 -07:00
  • ab3eb5b770 Improvements to the sqlite3ExprDup() logic for faster performance and better run-time error detection. This check-in fixes the 5x oversize memory allocation bug from [f371e4c0f8ea73ae] as well as all other known issues that result from handing the ORDER BY clause of an aggregate function off of the pLeft pointer of the Expr object. drh 2023-10-20 17:15:15 +00:00
  • 17c3408e0e Add the SQLITE_CHANGESETAPPLY_FKNOACTION flag to sqlite3session.h, for passing to sqlite3changeset_apply_v2() to cause all foreign key constraints to behave as if they were declared NO ACTION. dan 2023-10-20 17:06:39 +00:00
  • 70c13936ba Merge pull request #462 from JonahLund/optional-value Lucio Franco 2023-10-20 16:56:47 +00:00
  • e14e1aca67 Disable debug symbols on release lucio/reduce-lib-size Lucio Franco 2023-10-20 09:04:55 -07:00
  • 90e4a3b7fc Simplifications and optimizations to the Expr object duplication logic. The 5x multiplier crutch from [f371e4c0f8ea73ae] is still present. More fixes are still needed. drh 2023-10-20 15:47:30 +00:00
  • 0a261eb4bb Omit an unused constant from sessionfuzz.c to prevent a compiler warning. drh 2023-10-20 14:05:26 +00:00
  • 11223e0cff Correct the opfs-sahpool VFS's xGetLastError() method to return the previous error code, not 0, on success. stephan 2023-10-20 12:23:49 +00:00
  • d707e012f0 Use sqlite3ParserAddCleanup() instead of calling sqlite3ExprListDelete() directly when disposing of an unused ORDER BY in an aggregate function, to avoid disrupting ALTER TABLE data structures. drh 2023-10-20 10:18:03 +00:00
  • fb266b50c5 Merge pull request #481 from tursodatabase/common-libsql-sys ad hoc 2023-10-20 10:04:15 +00:00
  • 661377e32a add libsql-sys session feature ad hoc 2023-10-20 10:13:45 +02:00