drh
d260b5b2ce
Make the xAccess method of the unix VFS smaller and faster.
...
FossilOrigin-Name: 191aef986ffc4ef34d813e417e52a4ec820b0300
2015-11-25 18:03:33 +00:00
drh
5337dacbad
Remove unused methods from the unix VFS.
...
FossilOrigin-Name: 228bd15bbb7a1e6e3e0d03832e7f39ba169356a8
2015-11-25 15:15:03 +00:00
drh
91c4defbcf
Simplification of the error code translator in os_unix.c. Code cleanup only.
...
The logic is unchanged.
FossilOrigin-Name: 2a20f793fdf6a2e88b679a7bd4e8ccf2935df049
2015-11-25 14:00:07 +00:00
dan
f5d8c58950
Fix the fts5 "prefix=" option to match the documentation (space separated list, multiple prefix= options supported). The undocumented comma-separated format (compatible with fts4) still works.
...
FossilOrigin-Name: 11eb8e877e2ba859ef6b44318f286597186dfaf2
2015-11-25 11:56:24 +00:00
drh
d4a3ce49d7
Enhancement the virtual table interface to support LIKE, GLOB, and REGEXP
...
operators. Also add the sqlite3_strlike() interface, which might be useful
as part of the implementation of LIKE on some virtual tables.
FossilOrigin-Name: a6bfd4692c3f8b107546fbcaeb985d2c1817b3c1
2015-11-25 01:57:42 +00:00
drh
8b4a94adc1
Add the sqlite3_strlike() interface, which might be useful for implementing
...
LIKE operators on virtual tables.
FossilOrigin-Name: e70ec71d6883f2f8fc75301ff985bccb5aa06127
2015-11-24 21:23:59 +00:00
dan
ff7b22b714
Fix a problem in whereexpr.c causing a crash while processing a user-function taht accepts zero arguments.
...
FossilOrigin-Name: 069e51b19c773aa3017a8d307c8daa0766c224ba
2015-11-24 18:16:15 +00:00
drh
060f9a4a18
Fix harmless compiler warnings in the TCL test harness logic.
...
FossilOrigin-Name: 2fba7a96566b5448f527a4ec6a26e860c4889813
2015-11-24 18:04:39 +00:00
dan
898f70bc28
Merge latest trunk changes with this branch.
...
FossilOrigin-Name: 99222bb3e5f9b2a9a10d9561a9fd8c0f717baaff
2015-11-24 17:44:26 +00:00
dan
43970dd774
Add further tests and related fixes for GLOB/REGEXP/LIKE support in virtual tables.
...
FossilOrigin-Name: c5e9fd0dc92a07db3d3b5f5c5ad8fb63b3425c2b
2015-11-24 17:39:01 +00:00
drh
5a8d190b9e
Remove from os_unix.c pointless logic that tries to prevent a recurrence of
...
a warning message that can only occur once.
FossilOrigin-Name: 20256177072caa4f2b4114038ad1c8f6e26bc562
2015-11-24 16:40:23 +00:00
drh
aaeaa18e2e
Fix a comment typo in the unix VFS. No changes to code.
...
FossilOrigin-Name: 32e138796c66c88e8cbb77aa3a4282a38d1f959a
2015-11-24 15:12:47 +00:00
drh
6226ca2a6d
Make the geteuid() system call overloadable using xSetSystemCall() on the
...
unix VFSes.
FossilOrigin-Name: 6c2ddea65e1871b2fcb4991c5b3e6992993db3ea
2015-11-24 15:06:28 +00:00
drh
7060ef9294
Add a test case for the fix of check-in [19d9f9ce691963310]
...
FossilOrigin-Name: 19a9c07b26a4123dc60abdcc84a956f88c352bab
2015-11-24 03:50:16 +00:00
drh
2edc5fd73a
Remove an incorrect ALWAYS() macro. Fix for ticket [e5c6268dd807fa8950] -
...
a problem introduced in SQLite 3.9.0 and found by libFuzzer.
FossilOrigin-Name: 824ad96f72cb0c948ec98aca9d17a7e6790c575f
2015-11-24 02:10:52 +00:00
mistachkin
a9124d359b
Add a clarifying comment to the virtual table test module 'test8'.
...
FossilOrigin-Name: e92f97a6794440eb9d64e21218d39cb0e297a98e
2015-11-24 01:17:01 +00:00
drh
3d4143a38a
Do not try to eliminate No-ops at the end of VDBE program as this can cause
...
problems for some DISTINCT handling algorithms, and does not improve
performance. This also fixes an assertion fault found by libFuzzer.
FossilOrigin-Name: 19d9f9ce691963310fa73ac5ff728ea8dea9d2b2
2015-11-24 00:49:44 +00:00
dan
07bdba86d5
Add experimental support for LIKE, GLOB and REGEXP to the virtual table interface.
...
FossilOrigin-Name: 277a5b4027d4c2caba8143228a4f7d6df899dbb4
2015-11-23 21:09:54 +00:00
dan
323f7d3fc6
In the CREATE INDEX statements output by schemalint.tcl, avoid declaring an explicit collation sequence that is the same as the column's default.
...
FossilOrigin-Name: d3aa067c830e98f2074630c4613c557b0ce90a57
2015-11-23 18:28:07 +00:00
dan
09c480aba1
Merge latest trunk changes with this branch.
...
FossilOrigin-Name: 8f1ef0904d055b5510ec9043810ebf22a8c5e253
2015-11-23 17:14:03 +00:00
dan
1b8b839a8d
Fix ORDER BY handling in the schemalint.tcl script. Add internal self-tests to the same script.
...
FossilOrigin-Name: b8f277c9b45c4b30e6690e838a30311aa8d84876
2015-11-23 17:10:51 +00:00
dan
8836cbbcb4
Fix an obscure memory leak found by libfuzzer that may occur under some circumstances if expanding a "*" expression causes a SELECT to return more than 32767 columns.
...
FossilOrigin-Name: 60de5f23424552c98aa760ac89149a3d51f895be
2015-11-21 19:43:29 +00:00
drh
62aaa6ca88
Fix over-length source code lines. No logic changes.
...
FossilOrigin-Name: 198d191b2f5ef7d63ac0093c701955c9052fd734
2015-11-21 17:27:42 +00:00
drh
202923107d
Do not allow table-valued function syntax on ordinary tables and views as those
...
objects are not table-valued functions.
Fix for ticket [73eba7ba5c7c0fc].
FossilOrigin-Name: ff5716b89f99d9c4568a39f1f52524528a631623
2015-11-21 13:24:46 +00:00
dan
ef5de04b4e
Add support for ORDER BY clauses to schemalint.tcl.
...
FossilOrigin-Name: 93bdf70e859915ff3696ba0fc68f91ceb2e1a971
2015-11-20 20:55:27 +00:00
drh
c960dcbace
Refactor the VdbeCursor object. It is now slightly smaller and faster and is
...
easier to understand.
FossilOrigin-Name: 9b1d174d862500a627840008ffac4c8419dc97e2
2015-11-20 19:22:01 +00:00
drh
5f7dacb443
In the OP_Column opcode, only test the btree payload size for exceeding the
...
string length limit if the payload does not fit on a single page.
FossilOrigin-Name: 35c7f6cba6febf2480de01fca9d61b8065bf1c12
2015-11-20 13:33:56 +00:00
drh
7977fa3ab2
Enhancements to a comment in sqliteInt.h. No changes to code.
...
FossilOrigin-Name: 5446ae64d7f92444ca40aae2108015d1d77bc03f
2015-11-20 13:17:29 +00:00
drh
769dc6e2a2
Merge the latest enhancements from trunk.
...
FossilOrigin-Name: 7d6cfc79e7e5534ebacd980479917bc528a638f7
2015-11-19 19:40:40 +00:00
drh
99a1ab7ebc
Merge the latest enhancements from trunk.
...
FossilOrigin-Name: 8aede091c4740511d11ea14da253fe39bbfe75a6
2015-11-19 19:31:33 +00:00
drh
c83ef77bb9
Work toward more flexible typing for keys and values.
...
FossilOrigin-Name: 5c79f53131a7ab3c83f49e35a5021a6cdb2518fc
2015-11-19 19:27:07 +00:00
drh
18f8e73453
Fix problems with the way the IsHiddenColumn() macro is defined.
...
FossilOrigin-Name: 126b998cf163dcdd5a222634f1e929f04db3c700
2015-11-19 18:11:20 +00:00
dan
aaea31439d
Fix a problem with VACUUM and __hidden__ columns.
...
FossilOrigin-Name: 13995756ad8b80568aa2f74387788a8cab1123ef
2015-11-19 18:09:05 +00:00
drh
80090f9221
When manifesting a view as part of an DELETE or UPDATE, be sure to include
...
the hidden columns in the manifestation.
FossilOrigin-Name: 28df5dc4a9569f388af2ee0d1f016afbea132277
2015-11-19 17:55:11 +00:00
dan
ba68f8f3f5
Fix problems with INSERT INTO ... SELECT ... statements that write to tables with __hidden__ columns.
...
FossilOrigin-Name: 59bd0ec7d4327852ee8c0206b2c59d0a12484db8
2015-11-19 16:46:46 +00:00
drh
1a1d3cd2f3
Create the new TK_ASTERISK token to represent the "*" in "SELECT *". Formerly
...
that operator was TK_ALL, which was also used for UNION ALL. Less confusion if
they operator symbols are distinct.
FossilOrigin-Name: 201ac6d449431dadc6b29faecd68b559bd64bc9f
2015-11-19 16:33:31 +00:00
drh
05bdfa4a6f
If compiled with SQLITE_ENABLE_HIDDEN_COLUMNS, then columns in ordinary
...
tables and views that have names beginning with "__hidden__" are omitted from
the "*" expansion in SELECT statements and from the automatic list of columns
following the table name in an INSERT INTO statement.
FossilOrigin-Name: 011904cad2be2ce34e2f37ffae8ff2f1044a2969
2015-11-19 14:11:58 +00:00
drh
03d69a6826
Only support the magic "__hidden__" column name prefix interpretation when
...
compiled with SQLITE_ENABLE_HIDDEN_COLUMNS.
FossilOrigin-Name: 5490646b2eb74ea8bd5ab2690f69b9c707a0165f
2015-11-19 13:53:57 +00:00
drh
a6f88ffd3a
Fix a 10-year-old misguided attempt at parser performance improvement that
...
actually made parsing slightly slower.
FossilOrigin-Name: 3833cbac0706ecac9a641d70b786d26f7e1a42b1
2015-11-19 13:21:31 +00:00
drh
b1daa3f469
Get the __hidden__ column mechanism working on views with INSTEAD OF triggers.
...
FossilOrigin-Name: 20c1e9ce75cc0b5f7456379f35a4fe24edd98088
2015-11-18 21:22:02 +00:00
dan
ab5a8ee3e4
Add tests for views to hidden.test.
...
FossilOrigin-Name: 27d4b6f5756c7b19c00c95d46a77280c8b6f03a4
2015-11-18 20:59:47 +00:00
drh
6aed239acc
Honor the "__hidden__" prefix on the columns of views.
...
FossilOrigin-Name: 3071ba2bdbda7018d0a285eceb04b8527209ec1e
2015-11-18 20:57:50 +00:00
dan
d1ce65fc76
Add a test for the __hidden__ hack on this branch.
...
FossilOrigin-Name: ebf4bbffec58111a670c46a9eb469bfd2440b0b1
2015-11-18 20:07:12 +00:00
drh
f0c9145a36
If a table column name begins with "__hidden__" then do not include that
...
column in "*" expansions in SELECT statements, nor fill in that column in
an INSERT INTO that omits the column list. <b>This branch is a
proof-of-concept only and is not intended to ever be merged into trunk.</b>
FossilOrigin-Name: 2dbffb3a3b20dba7d7d86c8ad2e34633f616c78a
2015-11-18 18:43:15 +00:00
mistachkin
c88cd13753
When using mmap mode on Win32, use a read-only mapping by default. Write to the database file using WriteFile(). Unless SQLITE_MMAP_READWRITE is defined, in which case use a read/write mapping and write into the file using memcpy().
...
FossilOrigin-Name: 4f521b5bb36a1117db324e92dcf80abd2f1a5bc1
2015-11-17 21:42:32 +00:00
dan
fe33e39ba6
When using mmap mode on unix, use a read-only mapping by default. Write to the database file using write(). Unless SQLITE_MMAP_READWRITE is defined, in which case use a read/write mapping and write into the file using memcpy().
...
FossilOrigin-Name: 67c5d3c646c8198c8637069140aca952b802df25
2015-11-17 20:56:06 +00:00
mistachkin
bfe8bd5a5e
Fix uninitialized variable in the command line shell.
...
FossilOrigin-Name: dc2ac024d31a898bbc3e7fc824d806e63e993234
2015-11-17 19:17:14 +00:00
mistachkin
81c7811fe7
Fix harmless compiler warning.
...
FossilOrigin-Name: eea26b6caea37422c9b46a7a3a538b0c9575f392
2015-11-17 19:16:39 +00:00
drh
a87cc18948
Basic functionality is now working.
...
FossilOrigin-Name: aa129c51ecf5c917cfac30be330886f8a10f49e1
2015-11-17 02:23:09 +00:00
drh
eb8e7adb16
The virtual table compiles but does not work and is missing many features.
...
This is an incremental check-in.
FossilOrigin-Name: a32849d6bf66462d1f511714a00f24519d7b7079
2015-11-17 00:15:21 +00:00