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
523d5a91ee
Merge pull request #54 from ppisar/undefined_filename
...
Initialize filename variable in sqlite_db_filename()
2019-08-12 12:03:30 +03:00
Petr Písař
0c92dbae92
Initialize filename variable in sqlite_db_filename()
...
If sqlite library is too old, filename variable in
sqlite_db_filename() function was never defined. In spite of that the
variable was used in later condition.
This patch fixes it.
2019-07-29 16:59:44 +02:00
Kenichi Ishigaki
13f3416e3c
allow created function to return [value, sql_type] to specify the value is a blob explicitly
2019-07-21 01:50:33 +09: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
8b758bfbbf
applied a patch to fix segmentation fault on 32-bit big-endian platforms by Niko Tyni ( #45 )
...
https://salsa.debian.org/perl-team/modules/packages/libdbd-sqlite3-perl/blob/master/debian/patches/0001-Fix-SQLITE_DBCONFIG_DEFENSIVE-parameter-types.patch
2019-02-15 01:52:05 +09:00
Kenichi Ishigaki
ce5b33b381
try not to reuse hv
2019-01-26 07:41:16 +09:00
Kenichi Ishigaki
e5f82badfe
initialize HV* with NULL
2019-01-26 06:37:26 +09:00
Kenichi Ishigaki
2bbdf48fd7
fixed typo (wyant++)
2018-12-23 01:47:50 +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
f04f766d71
TYPE statement attribute should be integer (RT#46873)
2018-12-01 17:30:47 +09:00
Kenichi Ishigaki
66dff77e10
added sqlite_limit method
2018-12-01 13:50:45 +09: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
fbf0714a3c
implemented ParamValues statement handle attribute (RT-123886)
2017-12-16 03:31:54 +09:00
Jacques Germishuys
366a694cc6
silence some warnings
2017-05-25 13:20:40 +02:00
SATO Kentaro
8f8741d1b7
fix zero-length BLOB value is retrieved as undef
2017-03-14 00:20:56 +09:00
Kenichi Ishigaki
e17149317a
re-enable perl tokenizer by calling sqlite3_db_config if SQLite >= 3.12
2016-11-26 10:07:24 +09:00
Kenichi Ishigaki
7ae3f655d0
make sure to set internal unicode mode before registering default callbacks (REGEXP function etc)
2016-02-20 09:45:11 +09:00
Kenichi Ishigaki
d1fd6128e3
register perl tokenizer only if DBD::SQLite is compiled with -DSQLITE_ENABLE_FTS3_TOKENIZER
2016-02-16 12:55:38 +09:00
Kenichi Ishigaki
e9ae705fb6
split dbdimp.c and move tokenizer/virtual table-related code into .inc files
2016-02-16 12:23:09 +09:00
Kenichi Ishigaki
b624002827
sqlite_db_readonly requires SQLite 3.7.11
2016-01-11 19:38:17 +09:00
Kenichi Ishigaki
8845364fba
implemented ReadOnly attribute
2016-01-10 09:16:38 +09:00
Kenichi Ishigaki
ea07bcc638
LIKE/GLOB/REGEXP are also required to be implemented for SQLite 3.10.0 and above
2016-01-07 19:47:10 +09:00
Kenichi Ishigaki
0acc82460a
added a workaround for prepared savepoints to fix rt-106950
2015-10-10 12:01:32 +09:00
Kenichi Ishigaki
4891d48782
extended errcode is available only if SQLite >= 3.6.5
2015-09-04 08:44:23 +09:00
Kenichi Ishigaki
f7dde96931
outermost savepoint should be treated as a begin(RT #106151 )
2015-08-04 19:12:58 +09:00
Kenichi Ishigaki
01123b1321
savepv and free unprepared_statements attribute when necessary, to fix #11 (Grinnz++)
2015-07-30 00:27:24 +09:00
Kenichi Ishigaki
74e19c5161
use MY_CXT instead of a static global variable
2015-05-02 02:29:43 +09:00
Kenichi Ishigaki
a23de06650
fix GH #8
2015-04-16 19:59:21 +09:00
Kenichi Ishigaki
b1975f1e97
supported extended result codes
2015-03-20 11:52:46 +09:00
Kenichi Ishigaki
7a234eb71b
implemented a "do" shortcut for a special case (no attr, no bind params) (RT-35449)
2015-02-16 17:41:42 +09:00
Kenichi Ishigaki
69d9a31fc0
not to store imp_dbh globally, which should fix RT-86006 under Win32 (ie. ithreads-enabled environments)
...
- This is a tentative fix. Ideally this should be stored in MY_CXT or something less global.
2015-02-11 12:51:17 +09:00
Kenichi Ishigaki
eb10c7ce6f
tweaked code and tests for older SQLite libraries (re: RT 101573)
2015-02-10 17:07:32 +09:00
Kenichi Ishigaki
f5815659aa
restore n_a for older perls.
2014-10-26 11:11:03 +09:00
Kenichi Ishigaki
305cdbac2e
silenced a few warnings
2014-10-24 15:57:09 +09:00
Kenichi Ishigaki
0a1f3416fc
fixed regression of 0 as integer
2014-10-24 15:40:12 +09:00
Kenichi Ishigaki
3066f36c2c
adopted _sqlite_atoi64 from sqlite.c
2014-10-23 17:10:34 +09:00
Kenichi Ishigaki
517d9bf595
improved int64 handling for 32bit environment (RT-76395)
2014-10-23 00:25:47 +09:00
Kenichi Ishigaki
3c5267734d
fix for VC6
2014-10-20 16:22:24 +09:00
Kenichi Ishigaki
539d79f080
Applied a patch from Rob to fix RT-97598, and added a test
2014-07-30 01:57:50 +09:00
Kenichi Ishigaki
b792b5f9bd
fixed two issues for older perls (reported by ribasushi++)
2014-07-22 09:25:58 +09:00
Kenichi Ishigaki
db5df57c93
removed unused local variables
2014-07-21 08:34:30 +09:00
Kenichi Ishigaki
58b49b8bdb
Merge branch 'rt_96877_unicode_statements'
2014-07-21 08:28:53 +09:00
Kenichi Ishigaki
c1ddd22120
fixes for VC6
2014-07-21 08:22:47 +09:00
Laurent Dami
0ec13083f1
implementation of FIND_FUNCTION, plus a couple of cosmetic changes in various places
2014-07-20 18:57:19 +02:00
Laurent Dami
7af00e7edd
cleanup
...
- Emacs settings no longer in dbdimp.c source
- remove duplicated code (generalize cals to stacked_sv_from_sqlite3_value())
- variables renamed
2014-07-19 03:39:07 +02:00