summaryrefslogtreecommitdiff
path: root/databases/sqlite3
AgeCommit message (Collapse)AuthorFilesLines
2010-10-18Changes 3.7.3:adam2-6/+6
* Added the sqlite3_create_function_v2() interface that includes a destructor callback. * Added support for custom r-tree queries using application-supplied callback routines to define the boundary of the query region. * The default page cache strives more diligently to avoid using memory beyond what is allocated to it by SQLITE_CONFIG_PAGECACHE. Or if using page cache is allocating from the heap, it strives to avoid going over the sqlite3_soft_heap_limit64(), even if SQLITE_ENABLE_MEMORY_MANAGEMENT is not set. * Added the sqlite3_soft_heap_limit64() interface as a replacement for sqlite3_soft_heap_limit(). * The ANALYZE command now gathers statistics on tables even if they have no indices. * Tweaks to the query planner to help it do a better job of finding the most efficient query plan for each query. * Enhanced the internal text-to-numeric conversion routines so that they work with UTF8 or UTF16, thereby avoiding some UTF16-to-UTF8 text conversions. * Fix a problem that was causing excess memory usage with large WAL transactions in win32 systems. * The interface between the VDBE and B-Tree layer is enhanced such that the VDBE provides hints to the B-Tree layer letting the B-Tree layer know when it is safe to use hashing instead of B-Trees for transient tables. * Miscellaneous documentation enhancements.
2010-08-27Changes 3.7.2:adam2-10/+9
* Fix an old and very obscure bug that can lead to corruption of the database free-page list when incremental_vacuum is used. Changes 3.7.1: * Added new commands SQLITE_DBSTATUS_SCHEMA_USED and SQLITE_DBSTATUS_STMT_USED to the sqlite3_db_status() interface, in order to report out the amount of memory used to hold the schema and prepared statements of a connection. * Increase the maximum size of a database pages from 32KiB to 64KiB. * Use the LIKE optimization even if the right-hand side string contains no wildcards. * Added the SQLITE_FCNTL_CHUNK_SIZE verb to the sqlite3_file_control() interface for both unix and windows, to cause database files to grow in large chunks in order to reduce disk fragmentation. * Fixed a bug in the query planner that caused performance regresssions relative to 3.6.23.1 on some complex joins. * Fixed a typo in the OS/2 backend. * Refactored the pager module. * The SQLITE_MAX_PAGE_SIZE compile-time option is now silently ignored. The maximum page size is hard-coded at 65536 bytes.
2010-08-08Changes 3.7.0.1:adam2-6/+6
* Fix a potential database corruption problem that can result if the same database file is alternately written by version 3.7.0 and 3.6.23.1. * Fix a possible performance regression caused by the introduction of automatic indexing.
2010-07-22Changes 3.7.0:adam2-7/+6
* Added support for write-ahead logging. * Query planner enhancement - automatic transient indices are created when doing so reduces the estimated query time. * Query planner enhancement - the ORDER BY becomes a no-op if the query also contains a GROUP BY clause that forces the correct output order. * Add the SQLITE_DBSTATUS_CACHE_USED verb for sqlite3_db_status(). * The logical database size is now stored in the database header so that bytes can be appended to the end of the database file without corrupting it and so that SQLite will work correctly on systems that lack support for ftruncate().
2010-07-12Include the sqlite3_unlock_notify() API in the build.tnn1-1/+6
Bump PKGREVISON.
2010-06-17Add workaround of build failure on MacOS X 10.4, lack of gethostuuid(2).obache1-1/+8
PR#43429
2010-04-01Update to sqlite3-3.6.23.1.tnn2-6/+6
This is a patch release that fixes a FTS3 regression in 3.6.23. ok wiz@
2010-03-12Changes 3.6.23:adam2-6/+6
* Added the secure_delete pragma * Added the sqlite3_compileoption_used() and sqlite3_compileoption_get() interfaces as well as the compile_options pragma and the sqlite_compileoption_used() and sqlite_compileoption_get() SQL functions. * Added the sqlite3_log() interface together with the SQLITE_CONFIG_LOG verb to sqlite3_config(). The ".log" command is added to the Command Line Interface * Improvements to FTS3 * Improvements and bug-fixes in support for SQLITE_OMIT_FLOATING_POINT * The integrity_check pragma is enhanced to detect out-of-order rowids * The ".genfkey" operator has been removed from the Command Line Interface * Updates to the co-hosted Lemon LALR(1) parser generator. (These updates did not affect SQLite.) * Various minor bug fixes and performance enhancements
2010-01-18Changes 3.6.22:adam2-7/+6
* Fix bugs that can (rarely) lead to incorrect query results when the CAST or OR operators are used in the WHERE clause of a query. * Continuing enhancements and improvements to FTS3. * Other miscellanous bug fixes.
2010-01-11Match 3.6.20 behaviour & build threadsafe. Fix PR/42515 & issues with ↵abs1-2/+3
firefox. Bump PKGREVISION
2009-12-16update to 3.6.21drochner2-7/+6
changes: -SQL output resulting from sqlite3_trace() is now modified to include the values of bound parameters -Performance optimizations targetting a specific use case from a single high-profile user -FTS3 extension has undergone a major rework and cleanup -fixed the SQLITE_SECURE_DELETE compile-time option -Improvements to "dot-command" handling in the Command Line Interface -Other minor bug fixes and documentation enhancements
2009-11-21Switch to amalgamation style sqlite3 build. This is the recommendedtnn5-5825/+257
way to build sqlite3 according to upstream. It should give a small performance increase due to static inlining, but more importantly lets us avoid manual maintenance of sqlite3.h. Bump revisions for sqlite3 and sqlite3-tcl.
2009-11-13Changes 3.6.20:adam3-8/+7
* Optimizer enhancement: prepared statements are automatically re-compiled when a binding on the RHS of a LIKE operator changes or when any range constraint changes under SQLITE_ENABLE_STAT2. * Various minor bug fixes and documentation enhancements.
2009-10-28patch-ab: regentnn4-14/+21
Makefile: bump Makefile.common: document why this needs to be done
2009-10-28Changes 3.6.19:adam2-6/+6
* Added support for foreign key constraints. Foreign key constraints are disabled by default. Use the foreign_keys pragma to turn them on. * Generalized the IS and IS NOT operators to take arbitrary expressions on their right-hand side. * The TCL Interface has been enhanced to use the Non-Recursive Engine (NRE) interface to the TCL interpreter when linked against TCL 8.6 or later. * Fix a bug introduced in 3.6.18 that can lead to a segfault when an attempt is made to write on a read-only database.
2009-10-11Fix:tnn3-9/+5767
===> Building for sqlite3-3.6.18 tclsh ./tool/mksqlite3h.tcl . >sqlite3.h tclsh: not found gmake: *** [sqlite3.h] Error 127 Upstream didn't ship a pregenerated sqlite3.h. Committed as patch-ab.
2009-10-11Changes 3.6.18:adam2-6/+6
* Versioning of the SQLite source code has transitioned from CVS to Fossil. * Query planner enhancements. * The SQLITE_ENABLE_STAT2 compile-time option causes the ANALYZE command to collect a small histogram of each index, to help SQLite better select among competing range query indices. * Recursive triggers can be enabled using the PRAGMA recursive_triggers statement. * Delete triggers fire when rows are removed due to a REPLACE conflict resolution. This feature is only enabled when recursive triggers are enabled. * Added the SQLITE_OPEN_SHAREDCACHE and SQLITE_OPEN_PRIVATECACHE flags for sqlite3_open_v2() used to override the global shared cache mode settings for individual database connections. * Added improved version identification features: C-Preprocessor macro SQLITE_SOURCE_ID, C/C++ interface sqlite3_sourceid(), and SQL function sqlite_source_id(). * Obscure bug fix on triggers
2009-08-21Changes 3.6.17:adam2-6/+6
* Expose the sqlite3_strnicmp() interface for use by extensions and applications. * Remove the restriction on virtual tables and shared cache mode. Virtual tables and shared cache can now be used at the same time. * Many code simplifications and obscure bug fixes in support of providing 100% branch test coverage.
2009-07-29if I say "tcl_install" I mean just tcl install...drochner2-4/+13
fixes destdir installation
2009-07-09Changes 3.6.16:adam2-6/+6
* Fix a bug that occastionally causes INSERT or UPDATE operations to fail on an indexed table that has a self-modifying trigger. * Other minor bug fixes and performance optimizations.
2009-06-04Changes 3.6.14.2:adam2-6/+6
* Fix a code generator bug introduced in version 3.6.14. This bug can cause incorrect query results under obscure circumstances.
2009-05-21Changes 3.6.14.1:adam3-9/+7
* Fix a bug in group_concat(). * Fix a performance bug in the pager cache. * Fix a bug in the sqlite3_backup implementation that can lead to a corrupt backup database.
2009-05-20Recursive ABI depends update and PKGREVISION bump for readline-6.0 shlibwiz1-1/+3
major change. Reported by Robert Elz in PR 41345.
2009-05-19Uncomment some more LICENSE lines (all "public-domain").wiz1-2/+2
2009-05-19Use standard location for LICENSE line (in MAINTAINER/HOMEPAGE/COMMENTwiz1-2/+1
block). Uncomment some commented out LICENSE lines while here.
2009-05-07Changed 3.6.14:adam2-6/+13
* Added the optional asynchronous VFS module. * Enhanced the query optimizer so that virtual tables are able to make use of OR and IN operators in the WHERE clause. * Speed improvements in the btree and pager layers. * Added the SQLITE_HAVE_ISNAN compile-time option which will cause the isnan() function from the standard math library to be used instead of SQLite's own home-brew NaN checker. * Countless minor bug fixes, documentation improvements, new and improved test cases, and code simplifications and cleanups.
2009-04-18Changes 3.6.13:adam2-6/+6
* Fix a bug in version 3.6.12 that causes a segfault when running a count(*) on the sqlite_master table of an empty database. * Fix a bug in version 3.6.12 that causes a segfault that when inserting into a table using a DEFAULT value where there is a function as part of the DEFAULT value expression. * Fix data structure alignment issues on Sparc. * Other minor bug fixes.
2009-04-10Changes 3.6.12:adam3-29/+10
* Fixed a bug that caused database corruption when an incremental vacuum is rolled back in an in-memory database. * Added the sqlite3_unlock_notify() interface. * Added the reverse unordered selects pragma. * The default page size on windows is automatically adjusted to match the capabilities of the underlying filesystem. * Add the new ".genfkey" command in the CLI for generating triggers to implement foreign key constraints. * Performance improvements for "count(*)" queries. * Reduce the amount of heap memory used, especially by TRIGGERs.
2009-03-20Simply and speed up buildlink3.mk files and processing.joerg1-13/+6
This changes the buildlink3.mk files to use an include guard for the recursive include. The use of BUILDLINK_DEPTH, BUILDLINK_DEPENDS, BUILDLINK_PACKAGES and BUILDLINK_ORDER is handled by a single new variable BUILDLINK_TREE. Each buildlink3.mk file adds a pair of enter/exit marker, which can be used to reconstruct the tree and to determine first level includes. Avoiding := for large variables (BUILDLINK_ORDER) speeds up parse time as += has linear complexity. The include guard reduces system time by avoiding reading files over and over again. For complex packages this reduces both %user and %sys time to half of the former time.
2009-02-27fix a botch in last update which broke build of sqlite3-tcl.drochner2-4/+4
(Please give the pkgs you commit a least a minimal testing. Since sqlite3-tcl is needed to run the sqlite selftests the least I'd expect is to build that as well.)
2009-02-21patch from upstream: sqlite3 fails to build when tcl is not installed.tnn3-4/+24
Also set ac_cv_prog_TCLSH_CMD="" so the configure script won't find tcl.
2009-02-18Changes 3.6.11:adam3-14/+14
* Added the hot-backup interface. * Added new commands ".backup" and ".restore" to the CLI. * Added new methods backup and restore to the TCL interface. * Improvements to the syntax bubble diagrams * Various minor bug fixes
2009-02-09Don't use libtclstub84 for sqlite3-tcl, but libtcl84 itself.joerg2-1/+15
2009-01-17Changes 3.6.10:adam2-6/+6
* Fix a cache coherency problem that could lead to database corruption.
2009-01-15Changes 3.6.9:adam2-6/+6
* Fix two bugs, which when combined might result in incorrect query results. Both bugs were harmless by themselves; only when they team up do they cause problems. Changes 3.6.8: * Added support for nested transactions. * Enhanced the query optimizer so that it is able to use multiple indices to efficiently process OR-connected constraints in a WHERE clause. * Added support for parentheses in FTS3 query patterns using the SQLITE_ENABLE_FTS3_PARENTHESIS compile-time option.
2008-12-31Force -ldl on Linux, as this uses dlopen and friends. Also filed bug report:epg1-1/+6
http://www.sqlite.org/cvstrac/tktview?tn=3555
2008-12-16Changes 3.6.7:adam2-6/+6
* Reorganize the Unix interface in os_unix.c * Added support for "Proxy Locking" on MacOSX. * Changed the prototype of the sqlite3_auto_extension() interface in a way that is backwards compatible but which might cause warnings in new builds of applications that use that interface. * Changed the signature of the xDlSym method of the sqlite3_vfs object in a way that is backwards compatible but which might cause compiler warnings. * Added superfluous casts and variable initializations in order to suppress nuisance compiler warnings. * Fixes for various minor bugs.
2008-12-15backout previous - the tests need tcl and the proper test targetmartin1-3/+1
already is provided by sqlite3-tcl
2008-12-15add the test targetmartin1-1/+3
2008-11-28Changes 3.6.6.2:adam2-6/+6
* Fix a bug in the b-tree delete algorithm that seems like it might be able to cause database corruption. The bug was first introduced in version 3.6.6. * Fix a memory leak that can occur following a disk I/O error.
2008-11-23Changes 3.6.6.1:adam2-6/+6
* Fix a bug in the page cache that can lead database corruption following a rollback. This bug was first introduced in version 3.6.4. * Two other very minor bug fixes
2008-11-21Changes 3.6.6:adam2-6/+6
* Fix a define that prevented memsys5 from compiling * Fix a problem in the virtual table commit mechanism that was causing a crash in FTS3. * Add the application-defined page cache * Added built-in support for VxWorks Changes 3.6.5: * Add the MEMORY option to the journal_mode pragma. * Added the sqlite3_db_mutex() interface. * Added the SQLITE_OMIT_TRUNCATE_OPTIMIZATION compile-time option. * Fixed the truncate optimization so that sqlite3_changes() and sqlite3_total_changes() interfaces and the count_changes pragma return the correct values. * Added the sqlite3_extended_errcode() interface. * The COMMIT command now succeeds even if there are pending queries. It returns * SQLITE_BUSY if there are pending incremental BLOB I/O requests. * The error code is changed to SQLITE_BUSY (instead of SQLITE_ERROR) when an attempt is made to ROLLBACK while one or more queries are still pending. * Drop all support for the experimental memory allocators memsys4 and memsys6. * Added the SQLITE_ZERO_MALLOC compile-time option.
2008-10-19Comment out LICENSE=public-domain because we aren't putting in freegdt1-2/+2
licenses yet. Noticed By smb@.
2008-10-15Updated databases/sqlite3 to 3.6.4martti2-6/+8
* Add option support for LIMIT and ORDER BY clauses on DELETE and UPDATE statements. Only works if SQLite is compiled with SQLITE_ENABLE_UPDATE_DELETE_LIMIT. * Added the sqlite3_stmt_status() interface for performance monitoring. * Add the INDEXED BY clause. * The LOCKING_STYLE extension is now enabled by default on Mac OS-X * Added the TRUNCATE option to PRAGMA journal_mode * Performance enhancements to tree balancing logic in the B-Tree layer. * Added the source code and documentation for the genfkey program for automatically generating triggers to enforce foreign key constraints. * Added the SQLITE_OMIT_TRUNCATE_OPTIMIZATION compile-time option. * The SQL language documentation is converted to use syntax diagrams instead of BNF. * Other minor bug fixes
2008-10-06Changes 3.6.3:adam3-9/+7
* Fix for a bug in SELECT DISTINCT logic that was introduced by the prior version. * Other minor bug fixes.
2008-10-02Suppress detection of readline.h.obache1-1/+2
Configure failed to detect pkgsrc readline.h and disabled.
2008-09-22py-sqlite2 does not require disable-threadsafe but expect to existobache2-9/+5
load-extension these days. OKed by wiz to commit. Bump PKGREVISION.
2008-09-07Changes 3.6.2:adam2-6/+6
* Split the pager subsystem into separate pager and pcache subsystems. * Factor out indentifier resolution procedures into separate files. * Bug fixes.
2008-08-18Changes 3.6.1:adam2-6/+6
* Added the lookaside memory allocator for a speed improvement in excess of 15% on some workloads. (Your mileage may vary.) * Added the SQLITE_CONFIG_LOOKASIDE verb to sqlite3_config() to control the default lookaside configuration. * Added verbs SQLITE_STATUS_PAGECACHE_SIZE and SQLITE_STATUS_SCRATCH_SIZE to the sqlite3_status() interface. * Modified SQLITE_CONFIG_PAGECACHE and SQLITE_CONFIG_SCRATCH to remove the "+4" magic number in the buffer size computation. * Added the sqlite3_db_config() and sqlite3_db_status() interfaces for controlling and monitoring the lookaside allocator separately on each database connection. * Numerious other performance enhancements * Miscellaneous minor bug fixes
2008-07-18Changes 3.6.0:adam2-6/+6
* Modifications to the virtual file system interface to support a wider range of embedded systems. * All C-preprocessor macros used to control compile-time options now begin with the prefix "SQLITE_". * The SQLITE_MUTEX_APPDEF compile-time option is no longer supported. * The handling of IN and NOT IN operators that contain a NULL on their right-hand side expression is brought into compliance with the SQL standard and with other SQL database engines. This is a bug fix, but as it has the potential to break legacy applications that depend on the older buggy behavior. * The result column names generated for compound subqueries have been simplified to show only the name of the column of the original table and omit the table name. This makes SQLite operate more like other SQL database engines. * Added the sqlite3_config() interface for doing run-time configuration of the entire SQLite library. * Added the sqlite3_status() interface used for querying run-time status information about the overall SQLite library and its subsystems. * Added the sqlite3_initialize() and sqlite3_shutdown() interfaces. * The SQLITE_OPEN_NOMUTEX option was added to sqlite3_open_v2(). * Added the PRAGMA page_count command. * Added the sqlite3_next_stmt() interface. * Added a new R*Tree virtual table