1
0
Fork 0
mirror of https://github.com/DBD-SQLite/DBD-SQLite synced 2025-06-07 14:19:10 -04:00
Commit graph

307 commits

Author SHA1 Message Date
sisyphus
c5374438f4 dbdimp.c - Fix for Windows quadmath builds. 2024-09-17 22:03:29 +10:00
Kenichi Ishigaki
b6a4eb43a7 THX 2022-02-26 11:28:39 +09:00
Kenichi Ishigaki
abc241d711 Lowercase datatype 2022-02-26 11:20:41 +09:00
Kenichi Ishigaki
2d595f3bf2 Tidy 2022-02-26 11:19:26 +09:00
Kenichi Ishigaki
27dfab4fb2 Revert "Tidy"
This reverts commit 4a4f5d599b.
2022-02-26 11:14:13 +09:00
Kenichi Ishigaki
4a4f5d599b Tidy 2022-02-26 11:08:36 +09:00
Kenichi Ishigaki
1a3baef06d xFunc must also be NULL to delete a function 2022-02-26 11:05:54 +09:00
Kenichi Ishigaki
b7f24e3e1d Pass PL_sv_undef instead of NULL 2022-02-26 09:56:10 +09:00
Kenichi Ishigaki
8bf916dbd7 Let create_function unregister an existing function 2021-12-02 01:32:01 +09:00
Kenichi Ishigaki
43225fd7eb No need to check unicode twice 2021-07-30 23:09:47 +09:00
Kenichi Ishigaki
6e7986e8d4 Silence the deprecation warning of sqlite_unicode as it's so widely used 2021-07-30 06:05:13 +09:00
Kenichi Ishigaki
1aaf18dbf7 Experiment with quadmath patch from Tux to see if it works with older version of FreeBSD 2021-06-14 12:46:37 +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
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
b045ba29b8 Use NVff (Tux++, leont++) #65 2021-03-31 06:30:45 +09:00
Kenichi Ishigaki
4d1b28c393 Expose sqlite3_txn_state 2020-12-06 02:00:27 +09:00
Kenichi Ishigaki
dd6ab32da9 Use av_fetch instead of av_shift, to avoid leaks 2020-11-23 21:41:57 +09:00
Kenichi Ishigaki
d380158688 Use quadmath_snprintf if USE_QUADMATH is defined 2020-11-23 21:16:26 +09:00
Pali
6cffbab90e Add DBI SQL_BOOLEAN type as alias for SQLITE_INTEGER
According to SQLite documentation, boolean values are stored as integers:
https://www.sqlite.org/datatype3.html#boolean_datatype
2019-08-16 15:27:48 +02: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
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