Kenichi Ishigaki
d4aea379d4
Add sqlite_error_offset
2022-02-23 19:43:21 +09:00
Kenichi Ishigaki
8bf916dbd7
Let create_function unregister an existing function
2021-12-02 01:32:01 +09:00
Kenichi Ishigaki
ba4f472e73
Tweak for 3.37.0
2021-12-02 01:25:48 +09:00
Kenichi Ishigaki
f14744d31a
Use imported constants
2021-06-06 01:53:52 +09:00
Kenichi Ishigaki
1dc2e1dbe2
Fix to use string_mode
2021-05-30 21:19:18 +09:00
Kenichi Ishigaki
31483a245f
Merge branch 'string_mode'
2021-05-30 21:18:42 +09:00
Felipe Gasper
9dc75eaead
Replace “string_unicode” boolean with “string_mode” enum.
...
Issue #78 and issue #68 : This introduces additional, more robust
schemas for translating strings between SQLite and Perl.
2021-05-29 19:19:58 -04:00
dami
6669dbc332
cleanup tokenizer code and test
2021-05-13 12:27:57 +02:00
dami
f68f79415f
test to show that perl tokenizer with unicode is extremely slow
2021-05-11 09:01:59 +02:00
dami
8d5a28cf5c
additional test for snippet()
2021-05-09 22:22:39 +02:00
dami
b5c3f9d528
fixed #75 -- lastCharOffset must copy the OLD value of piEndOffset, BEFORE it is recomputed
...
also fixed 43_fts3.t so that it uses \p{Word} instead of \w, because en-us locale did not handle accented characters
2021-05-09 22:06:28 +02:00
dami
be9f64b2c9
tests for functions snippet() and offets()
2021-05-09 19:25:27 +02:00
Felipe Gasper
f1342ec177
Give upgraded strings to SQLite as downgraded when sqlite_unicode==0.
...
Issue #66 : If $a and $b contain the same code points but one is upgraded
and the other isn’t, previously DBD::SQLite would give two different C
strings to SQLite. This changeset fixes that so that SQLite always
translates equivalent Perl strings to the same C string, regardless of the
Perl strings’ internal encoding.
2021-03-31 20:33:57 -04:00
Kenichi Ishigaki
7fcca420ba
Apply a patch for t/rt_73787_exponential_buffer_overflow.t (Tux++) #64
2021-03-31 06:23:36 +09:00
Kenichi Ishigaki
4d1b28c393
Expose sqlite3_txn_state
2020-12-06 02:00:27 +09:00
Kenichi Ishigaki
5f5caa286f
Add more tests for create_function
2020-01-18 10:01:33 +09:00
Pali
012ad14605
Add DBI SQL_BIT, SQL_BINARY, SQL_VARBINARY and SQL_LONGVARBINARY types as alias for SQLITE_BLOB
...
Other DBI drivers use DBI SQL_VARBINARY type for binary data, including
SQLite3 ODBC driver (via DBD::ODBC). So this change allows to use DBI
SQL_VARBINARY type for SQLite3 blob data.
2019-08-16 14:41:37 +02:00
Kenichi Ishigaki
de43ac98af
let db_config allow new constants
2019-07-12 02:44:45 +09:00
Kenichi Ishigaki
3363414db3
expose sqlite3_get_autocommit ( fix #52 )
2019-07-12 02:01:41 +09:00
Kenichi Ishigaki
e3bce4ab39
fix $dbh->quote(blob, SQL_BLOB) #51
2019-05-25 01:33:09 +09:00
Kenichi Ishigaki
31915d44ed
skip a compatibility test if sqlite is compiled with SQLITE_USE_URI ( #47 )
2019-02-14 03:28:15 +09:00
Kenichi Ishigaki
b0fad50e4c
fixed for older DBI
2019-01-26 07:12:40 +09:00
Kenichi Ishigaki
fa6a2c7040
fixed no if conditions
2019-01-26 07:10:10 +09:00
Kenichi Ishigaki
90ec098f1c
added a boilerplace for test
2019-01-26 06:56:16 +09:00
Max Maischein
1fd1a0d15f
Handle 'unknown' op in DBD::SQLite::VirtualTable::PerlData
...
This patch adds code and a test when SQLite generates an 'unknown'
op for a table join in the BEST_INDEX() callback. The Perl code crashed
when such an op was generated for a JOIN criterion by the SQLite engine.
The SQLite engine creates an 'unknown' op on the following SQL
for example:
select r.nodepath
from temp.scan_results r
left join temp.scan_results m
on r.nodepath = m.nodepath+1
where m.nodepath is null
The important part is that the right side of the left join must be
checked for IS NULL.
2019-01-25 19:05:07 +01:00
Kenichi Ishigaki
bfe71db88f
locale warning is only available for perl 5.22+
2019-01-20 08:27:04 +09:00
Kenichi Ishigaki
9c1b3501f7
fix the number of tests to skip ( fix #44 )
2019-01-20 08:23:49 +09:00
Kenichi Ishigaki
4dd0bf8167
no warnings 'locale'
2019-01-18 05:13:34 +09:00
Kenichi Ishigaki
627666e888
not to use Test::FailWarnings except for developers environment
2019-01-07 03:48:10 +09:00
Kenichi Ishigaki
f56689d929
use more test utility functions
2019-01-07 03:41:09 +09:00
Kenichi Ishigaki
cdb721d162
use note to hide debug messages
2019-01-07 03:39:10 +09:00
Kenichi Ishigaki
49ea768740
fixed a broken test because Test::NoWarnings was gone
2019-01-06 22:28:30 +09:00
Kenichi Ishigaki
fdde5b98ef
use Test::FailWarnings as Test::NoWarnings does not play well with done_testing
2019-01-06 09:17:14 +09:00
Kenichi Ishigaki
c84a0a9781
use done_testing and remove plan tests
2019-01-06 09:03:41 +09:00
Kenichi Ishigaki
fc55eeb0d7
fixed mixed EOLs and removed redundant blank lines
2019-01-06 05:55:34 +09:00
Kenichi Ishigaki
11c2f4e70f
use warnings
2019-01-02 21:17:30 +09:00
Kenichi Ishigaki
12ab284322
removed shebang from tests
2019-01-02 21:10:51 +09:00
Kenichi Ishigaki
48740e8f30
removed executable bit from a test
2019-01-02 20:55:34 +09:00
Kenichi Ishigaki
b4a47ef2cf
added tests for sqlite_db_config(..., -1)
2018-12-29 02:56:29 +09:00
Kenichi Ishigaki
a719c681d4
add sqlite_defensive option
2018-12-22 15:18:41 +09:00
Kenichi Ishigaki
a28532af37
implemented sqlite_db_config interface (RT-128056)
2018-12-22 05:09:06 +09:00
Kenichi Ishigaki
6faa8a3c90
Implemented backup_to_dbh/backup_from_dbh ( #30 )
2018-12-01 17:48:46 +09:00
Kenichi Ishigaki
6a86e54992
introduced sqlite_prefer_numeric_type handle attribute
2018-12-01 17:32:55 +09:00
Kenichi Ishigaki
09288710c5
these are not TODO any more
2018-12-01 17:30:47 +09:00
Kenichi Ishigaki
90cf41a773
removed a type test in rt_40594_nullable.t
2018-12-01 17:30:47 +09:00
Kenichi Ishigaki
47c115cae2
fix the number of tests for ancient DBI
2018-12-01 17:11:42 +09:00
Kenichi Ishigaki
66dff77e10
added sqlite_limit method
2018-12-01 13:50:45 +09:00
Kenichi Ishigaki
817c9a5669
mention cast() function
2018-11-03 16:28:08 +09:00
Kenichi Ishigaki
998847196d
use func to support older DBI
2018-10-13 17:48:20 +09:00
Kenichi Ishigaki
52c2e15fa5
fix a broken virtual filecontent table test
2018-09-17 04:07:42 +09:00