drh
4ee09b4bcc
Allocate 4 bytes of unused header space for an "Application ID". Add
...
the "PRAGMA application_id" command to set and query this identifier.
Add the "magic.txt" file to show how the posix file command might use
this application id.
FossilOrigin-Name: 28c9e7fdee2471a3026ee05ff591194d5f398131
2013-05-01 19:49:27 +00:00
drh
c95e01da22
Verify that the schema has not changed before running PRAGMA table_info,
...
index_list, index_info, and foreign_key_list.
FossilOrigin-Name: 82952d08f3e3aa80a7f51e80dbc89742cb4a09f0
2013-02-14 16:16:05 +00:00
drh
384b7fe221
Enhance the table_info pragma so that the pk column shows the order of the
...
columns in a multi-column primary key.
FossilOrigin-Name: 3076a89015071e9b40e728bd55160e3a6ed98820
2013-01-01 13:55:31 +00:00
dan
5885e76269
If a specific database is nominated as part of a "PRAGMA integrity_check" or "PRAGMA quick_check" command, search for problems in the nominated database only. i.e. "PRAGMA main.quick_check" now only scans the main database, not all attached databases as before.
...
FossilOrigin-Name: 4353e40b74f577f224f190c429bfe03cf6a5c6d6
2012-07-16 10:06:12 +00:00
drh
cc71645bf7
Merge the changes need to compile on WinRT into trunk.
...
FossilOrigin-Name: 61360ca6ca3448477d5c662d3642beef6dd2079e
2012-06-06 23:23:23 +00:00
mistachkin
a112d140ae
Add experimental support for resolving relative database file paths using a fixed user-defined directory.
...
FossilOrigin-Name: 7354ae8fd3eccee2cf9f6501da5b1a014c31556f
2012-03-14 00:44:01 +00:00
mistachkin
f8a784645c
On Windows, make sure the current directory value used by the test suite is 'normalized' to what the parent command shell sees. Also, clean the test directories used by the quota2.test file.
...
FossilOrigin-Name: 82bcd7ec1531f6d71c079578434c58d3ce46a1de
2012-03-08 20:00:36 +00:00
mistachkin
5b044545d7
Fix test pragma-19.5 so that it works on file names that may contain spaces and/or backslashes.
...
FossilOrigin-Name: 9aaa1ab7c63c9045fecf5e965b333cc5f28b0791
2012-03-02 22:41:06 +00:00
drh
c8517f614d
Move test logic for SQLITE_FCNTL_PRAGMA out of os_unix.c and into test_vfs.c.
...
FossilOrigin-Name: c81fc40b2b584820ac7d1c3848ebeb7225d4eeeb
2012-02-22 20:08:49 +00:00
drh
92c700dbb7
If the SQLITE_FCNTL_PRAGMA file-control returns anything other than
...
SQLTIE_NOTFOUND and SQLITE_OK, then treat the result as an error.
FossilOrigin-Name: 5643618108a8aafba67ed4004039b862bb5e5da8
2012-02-22 19:56:17 +00:00
drh
3b42abb35b
A negative value N for the cache_size pragma adjusts the number of cache
...
pages to use approximately N kibibytes of memory.
FossilOrigin-Name: b3faa680aedc94ed8aa2819228c0d304b181cc51
2011-11-09 14:23:04 +00:00
drh
5d16a9a6c6
Make sure the page_count and quick_check pragmas work properly even when
...
their names are capitalized. Fixes a problem reported on the mailing list.
FossilOrigin-Name: 150592b4b4d86372e70332d4f69e41a04c4c54c3
2011-10-13 14:41:22 +00:00
mistachkin
fda06befd5
Add retry logic for AV defense to winOpen. Also, refactor test suite to allow the key Tcl file operations (e.g. copy and delete) to be retried.
...
FossilOrigin-Name: 9007586fdabed8dbcc78581ea9821cfd1f9a4c8c
2011-08-02 00:57:34 +00:00
dan
14d14607a5
Fix minor test suite problems causing errors on OSX.
...
FossilOrigin-Name: 759c954fee215a64f21fe13491515eebebbc6d01
2010-10-06 16:42:52 +00:00
dan
cb35460330
Changes to test scripts so that the "inmemory_journal" permutation works with [ef126e775a].
...
FossilOrigin-Name: f553c8ed04b4b2df8ff4929e0754e3ffd1d01ba4
2010-07-08 09:44:42 +00:00
dan
68928b6c3e
Some changes to test scripts related to codec enabled versions of sqlite.
...
FossilOrigin-Name: 85dd51a75c75b2a123744f646e04538e4e5d89b3
2010-06-22 13:46:43 +00:00
drh
dd3cd977cc
Experimental changes that cause SQLite to use bytes 28..31 of the database
...
header to determine the database size, rather than using the actual database
size. This allows database space to be preallocated.
FossilOrigin-Name: b844ac6fcb72595a71e5c5283ec461309a87ba79
2010-03-27 17:12:36 +00:00
dan
1da40a381f
Check in implementation of foreign key constraints.
...
FossilOrigin-Name: d5d399811876391642937edeb9e8434dd9e356f5
2009-09-19 17:00:31 +00:00
danielk1977
838cce4382
Only run tests that depend on SQLITE_PREFER_PROXY_LOCKING builds when said symbol is set. (CVS 6169)
...
FossilOrigin-Name: 5d88f8be7342acd2a7ed6f269bec615cd03e59e2
2009-01-12 14:01:45 +00:00
drh
d2cb50b74c
Coverage improvements in pragma.c. Change the __DARWIN__ macro to __APPLE__,
...
which is available by default on Leopard. (CVS 6153)
FossilOrigin-Name: 64c56226b91e57883c8059f65330318e53376b8a
2009-01-09 21:41:17 +00:00
drh
04bbcd5ce9
Fix a bug in the multi-index OR cost estimator. Remove leftover "breakpoint"
...
commands from test scripts. (CVS 6086)
FossilOrigin-Name: b090d5736d7eaec17a39d3133e1587b1d2a42acb
2008-12-30 17:55:00 +00:00
aswift
aebf413d9a
Added support for proxy file locking style
...
Added pragma support for controlling proxy file locking
Added file control access to last errno and proxy locking
Added support for TMPDIR environment variable
Extended unit tests to cover new proxy locking pragmas and file control features (CVS 5934)
FossilOrigin-Name: b9bc36d3d5e35821ef69c0881a84c0afed253c9e
2008-11-21 00:10:35 +00:00
danielk1977
f96a3778f9
Fix a bug in pragma table_info. Column default values specified as negative numbers (col DEFAULT -1) were being reported as NULL by the pragma. (CVS 5839)
...
FossilOrigin-Name: 0e448bc6096c7ee3b21dbd22dc4ca9470ae7ba31
2008-10-23 05:45:07 +00:00
danielk1977
50af3e1d2d
Change 'pragma foreign_key_list' to return some extra information. (CVS 5795)
...
FossilOrigin-Name: 3bb33cf59da49f13201c0226e964cda067a4e780
2008-10-10 17:47:21 +00:00
danielk1977
181ddaa184
Use (file nativename (pwd)) instead of just (pwd) to find the name of the current directory to pass to "PRAGMA temp_store_directory" in pragma.test. This helps the test pass on non-unix systems. (CVS 5709)
...
FossilOrigin-Name: 50feaa3707f4f61202bc855802ab2e405365d801
2008-09-16 15:50:11 +00:00
drh
78f82d1e6c
Continuing work on adding full support for the SQLITE_OMIT_WSD
...
compile-time option. (CVS 5658)
FossilOrigin-Name: ef26ea5c46d3915d206f8ff7f82a24f4c8955f1f
2008-09-02 00:52:52 +00:00
danielk1977
260d8a6aec
When a "pragma main.table_info(...)" is issued, consider only tables from the main database, not the temp db. Ticket #3320 . (CVS 5568)
...
FossilOrigin-Name: d0cfbbbaeef7b8ce9f73c6cd58888989a2df5b1f
2008-08-20 16:34:24 +00:00
drh
e8f52c5089
Remove leftover debugging commands (breakpoint and btree_breakpoint) from
...
test scripts. (CVS 5400)
FossilOrigin-Name: dcb160249fa2d592ad09b8b0052102dc44a93511
2008-07-12 14:52:20 +00:00
danielk1977
983e230939
Prohibit the user from changing the temporary storage medium (pragma temp_store) while there is a read transaction open on the temporary database. Add tests to shared.test to cover a few more lines in btree.c. (CVS 5362)
...
FossilOrigin-Name: 92e0cf9a08a8b337a8f239afb048a0e045485771
2008-07-08 07:35:51 +00:00
danielk1977
8cf6c554c0
Fix a bug causing the pager-cache size to be reset to its default value whenever the database schema was reloaded. (CVS 5283)
...
FossilOrigin-Name: 6dbe67da5cb0141e011b4fdcc3964a20f68be843
2008-06-23 16:53:46 +00:00
danielk1977
17b90b5316
Remove the xGetTempname() method from the vfs structure. Temp files are now opened by passing a NULL pointer as the filename to xOpen(). (CVS 5190)
...
FossilOrigin-Name: 5173b3e816c7eb711cd21a9068bbafb9ebb7cff1
2008-06-06 11:11:25 +00:00
danielk1977
59a93791ce
Add the "page_count" pragma. Returns a single integer - the number of pages in the specified database file. (CVS 5135)
...
FossilOrigin-Name: eb6985e69ce2a5e5e7361f6226d1cfc547fd441d
2008-05-15 17:48:20 +00:00
drh
bb8a279e11
Remove the dependency on the direct btree interface from as many test
...
scripts as is practical. Fix a bug in the output limiter of the
integrity_check pragma that came up while making this change. (CVS 4880)
FossilOrigin-Name: 24e769972eb6052b82dc94d20444c186a213e104
2008-03-19 00:21:30 +00:00
drh
d19744f353
Test script changes that go with the coverage enhancements of the
...
previous check-in. (CVS 4878)
FossilOrigin-Name: f87ddf83a5d1340652f222972a7d75f4fdbe776b
2008-03-18 13:46:53 +00:00
drh
9b5adfa220
Add the RTRIM collating sequence. Only implemented for UTF8. Still
...
considered experimental and may be removed if we find adverse impact
elsewhere in the system. (CVS 4732)
FossilOrigin-Name: 0bf4e7fefdbbf7be4e32195473563158f22f1869
2008-01-20 23:19:56 +00:00
danielk1977
41c58b78b9
Add experimental pragma "quick_check", a reduced version of integrity_check that runs without most of the overhead of the full integrity_check. (CVS 4645)
...
FossilOrigin-Name: 2ddc8d72723e5a294e850491fcd9c1fb7474a9c3
2007-12-29 13:39:19 +00:00
danielk1977
5a8f9374ab
Fixes to the test suite (no code changes) so that quick.test runs with OMIT_ATTACH builds. #2706 . (CVS 4480)
...
FossilOrigin-Name: 07c00fffe50e8380748f7ae02328531a75d64610
2007-10-09 08:29:32 +00:00
danielk1977
6338c762a5
Bring the autoconf based build system up to date with the recent changes. #2366 , #2367 and #2368 . (CVS 4022)
...
FossilOrigin-Name: ae644bc7aad229f2d219ea20eb4774318feb3051
2007-05-17 16:38:30 +00:00
drh
1e9daa6ab5
Changes to test scripts to support alternative configurations. (CVS 3824)
...
FossilOrigin-Name: 3471a2269fb6b3769b59b70992e6da3bdebea7df
2007-04-06 21:42:22 +00:00
danielk1977
95b289b684
Coverage tests for some pragmas. (CVS 3767)
...
FossilOrigin-Name: eec7ab63beed875a3b16c3bf8d28ac4f296dfb4c
2007-03-30 17:11:12 +00:00
drh
e3d559ad37
Adjustments to the pragma test for OS-X. (CVS 3615)
...
FossilOrigin-Name: 4d0d2063df2191155b290dc426b502bc7e1959c7
2007-01-27 14:26:07 +00:00
drh
05a6f4ac56
More adjustments to the pragma test for windows. (CVS 3614)
...
FossilOrigin-Name: 79a65436d1cd10ed6318edfaa7d76e2b99c7c879
2007-01-27 14:11:41 +00:00
drh
90ddb12399
Adjustment to tests for PRAGMA integrity_check so that they run under windows. (CVS 3613)
...
FossilOrigin-Name: a79914ccbc9e33a1dbc9be3de805f99ab3b61c78
2007-01-27 14:04:13 +00:00
drh
1dcdbc0639
Limit the number of errors returned by PRAGMA integrity_check to 100 by
...
default. Specify an alternative limit using an argument to the pragma.
Ticket #2176 . (CVS 3609)
FossilOrigin-Name: d564a039f27be2bb2c3973e79dc99b25869139da
2007-01-27 02:24:54 +00:00
drh
1941a3e8ac
Fix a pragma test so that it works in directories that have spaces in
...
their names. (CVS 3597)
FossilOrigin-Name: 071c957a5dcd236139113d7c0dc1d58b54180eb7
2007-01-22 13:02:24 +00:00
drh
25403650c3
Fix the user_version and schema_version pragmas so that they set a result
...
column name. Ticket #2143 . (CVS 3560)
FossilOrigin-Name: f81c4227c26a4d43993904ab05c1eb9f988e3b66
2007-01-04 22:13:41 +00:00
drh
736c7d4b2c
Change the table_info pragma so that it returns NULL for the default
...
value if there is no default value. Ticket #2078 . (CVS 3527)
FossilOrigin-Name: 5f21c3a5f02b4f2c4550f5904e9d0e1e2eafb0f3
2006-11-30 13:06:37 +00:00
drh
417ec6381f
Change the table_info pragma to show the text of the default value expression,
...
not the result of evaluating the default value expression.
Ticket #1919 . (CVS 3353)
FossilOrigin-Name: b4d53974c30d195c061cc7605a707d7d30c52740
2006-08-14 14:23:41 +00:00
danielk1977
4b2688ab31
Modifications so that compilation and testing with the various OMIT macros defined works. (CVS 3276)
...
FossilOrigin-Name: c6ea353bd9f5fe6c9cc3349d2034ada283f9c80e
2006-06-20 11:01:07 +00:00
drh
05a8298338
Increase test coverage to above 98%. (CVS 3144)
...
FossilOrigin-Name: 8ae6ccc715b081cd422e847cd9e5cc22b04d8512
2006-03-19 13:00:25 +00:00