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
Kenichi Ishigaki
113ca70aa5
Fix to use a PV value as a virtual table column value where appropriate (RT-124941)
2018-09-17 03:46:52 +09:00
Ed J
8500529c1b
add deferrability to foreign_key_info
2018-08-26 22:02:12 +01:00
Brendan Byrd
62a54a4610
Create DBD::SQLite::GetInfo with a more verbose set of data
2018-04-30 19:45:39 -04:00
Kenichi Ishigaki
1d665d8661
fetching attributes from a statement handle whose database handle is disabled should return an error, instead of coredump under perl with -fsanitize=address
...
- reported by Peter Rabbitson
2018-03-21 15:04:09 +09:00
Kenichi Ishigaki
ef9f0d2424
add order by to make a test more reliable (ribasushi++)
...
- 849d2ac9ad (commitcomment-27150620)
2018-01-28 00:29:00 +09:00
Kenichi Ishigaki
849d2ac9ad
Add a regression test for RT-124227
2018-01-27 12:34:47 +09:00
Kenichi Ishigaki
7b949c35a4
Fix test failures for older perls because of the line ending
2018-01-20 16:34:02 +09:00
Kenichi Ishigaki
72fd3e009e
Remove NoWarnings test from t/43_fts.t because Perl may spit a locale warning under some environment
2018-01-20 16:07:33 +09:00
Kenichi Ishigaki
fbf0714a3c
implemented ParamValues statement handle attribute (RT-123886)
2017-12-16 03:31:54 +09:00
Kenichi Ishigaki
573d6f02b7
fixed ISNOT undef case
2017-11-21 05:15:27 +09:00
Kenichi Ishigaki
0dbc9d1074
made the table name argument for statistics_info() case-insensitive (RT-122581)
2017-09-07 07:14:19 +09:00
Peter Rabbitson
c4eab85ff7
Workaround for upcoming lack of dot in @INC ( RT#120444, sigh )
...
Zero functional changes, simply executed the following:
find . -name '*.t' -exec perl -0777 -p -i -e 's|^use t::lib::SQLiteTest|use lib "t/lib";\nuse SQLiteTest|m' {} +
Also had to do a manual (but identical) fix in t/01_compile.t
2017-05-05 00:48:33 +02:00
SATO Kentaro
8f8741d1b7
fix zero-length BLOB value is retrieved as undef
2017-03-14 00:20:56 +09:00
Kenichi Ishigaki
e4c031b7ba
remove VERSION from t/lib/SQLiteTest.pm
2017-03-04 15:05:38 +09:00
Kenichi Ishigaki
434aea6479
rename t/lib/Test.pm to t/lib/SQLiteTest.pm
2017-03-04 15:04:39 +09:00