1
0
Fork 0
mirror of https://github.com/DBD-SQLite/DBD-SQLite synced 2025-06-08 06:38:12 -04:00
Commit graph

174 commits

Author SHA1 Message Date
Kenichi Ishigaki
edfec1a6db DBD-SQLite: fixed error handling of backup_(from|to)_file 2009-05-06 09:37:16 +00:00
Kenichi Ishigaki
47463880ee DBD-SQLite: moved typedef into dbdimp.h 2009-05-06 09:23:24 +00:00
Kenichi Ishigaki
4958487d94 DBD-SQLite: renamed misleading dbd_set_sqlite3_busy_timeout to sqlite3_db_busy_timeout (dbd_ prefix should be used for the ones defined in dbd_xsh.h in the DBI package) 2009-05-06 08:08:33 +00:00
Kenichi Ishigaki
87baa98f67 DBD-SQLite: applied the online backup patch from Toby Corkindale (with a little modification) 2009-05-06 07:55:35 +00:00
Kenichi Ishigaki
0842e9de3a DBD-SQLite: no need to count length for integer and float (#45578) 2009-04-30 14:45:57 +00:00
Kenichi Ishigaki
9e6ab8d21e DBD-SQLite: made some routines static and cosmetic changes 2009-04-30 14:41:39 +00:00
Kenichi Ishigaki
29b488e5ea DBD-SQLite: and no need to free that clone anymore (#45578) 2009-04-30 14:37:23 +00:00
Kenichi Ishigaki
f8cf0b1374 DBD-SQLite: no need to clone as we'll copy it soon anyway 2009-04-30 14:35:43 +00:00
Kenichi Ishigaki
8078b09593 DBD-SQLite: a bit cleaner way to store a query for later reuse (#45578) 2009-04-30 14:31:26 +00:00
Kenichi Ishigaki
6af1d53c28 DBD-SQLite: small tweak (#45578) 2009-04-30 14:24:12 +00:00
Kenichi Ishigaki
a568b27dbf DBD-SQLite: removed several well-known macros that have been defined since perl 5.6 2009-04-30 14:15:05 +00:00
Kenichi Ishigaki
4f7799b489 DBD-SQLite: commented out meaningless sentence (#45578) 2009-04-30 06:51:11 +00:00
Kenichi Ishigaki
b9ea59be1a DBD-SQLite: silenced warnings 2009-04-30 06:42:13 +00:00
Kenichi Ishigaki
89831ec6b1 DBD-SQLite: use form()/Perl_form() instead of sqlite3_snprintf() (#45578) 2009-04-30 06:37:27 +00:00
Kenichi Ishigaki
974ebde43c DBD-SQLite: added necessary ENTER/SAVETMPS/FREETMPS/LEAVE to sqlite_db_progress_handler_dispatcher 2009-04-30 06:15:11 +00:00
Kenichi Ishigaki
6afda6d925 DBD-SQLite: newRV(sv_2mortal()) -> newRV_noinc() (#45578) 2009-04-30 06:01:18 +00:00
Kenichi Ishigaki
aa814eecde DBD-SQLite: removed sqlite_quote which is not, and will not be used (#45578) 2009-04-30 05:53:00 +00:00
Adam Kennedy
683e627d25 Correcting newline style to native 2009-04-22 02:02:20 +00:00
Kenichi Ishigaki
8f41000faf DBD-SQLite: r6395 rewinds lots of things. reverted dbdimp.c 2009-04-19 09:12:06 +00:00
Max Maischein
14b507835b Silence(!) Win64 build warnings 2009-04-18 16:08:41 +00:00
Adam Kennedy
22877e97e9 We don't need to issue a warnings for commit while AutoCommit enabled, because the DBI layer does it already for us. 2009-04-17 02:55:58 +00:00
Adam Kennedy
e7c3a8afae We don't need to issue a warnings for commit while AutoCommit enabled, because the DBI layer does it already for us. 2009-04-17 02:55:44 +00:00
Adam Kennedy
03e95f6454 We don't need to issue a warnings for commit while AutoCommit enabled, because the DBI layer does it already for us. 2009-04-17 02:55:31 +00:00
Kenichi Ishigaki
903bb83c7b DBD-SQLite: actually disabled unicode support for perl < 5.8.5 2009-04-10 08:12:31 +00:00
Kenichi Ishigaki
ded22d4a9f DBD-SQLite: reverted problematic number guessing (suggested by GUIDO); this reopens #29058 (group by) and #29629 (sqlite where length) issues, though. 2009-04-10 07:16:40 +00:00
Adam Kennedy
018e33ddd4 Reverting 2009-04-10 07:01:28 +00:00
Adam Kennedy
3e680309ba Reverting failed change 2009-04-10 06:27:50 +00:00
Kenichi Ishigaki
00d9d67496 DBD-SQLite: followed the best practice described in http://search.cpan.org/~timb/DBI/lib/DBI/DBD.pm#The_dbd_init_method 2009-04-10 04:54:22 +00:00
Kenichi Ishigaki
3d9bf5c1e2 DBD-SQLite: switched from dTHX to pTHX_/aTHX_ where I could. I think #44884 is almost done except for the ones related to other tickets like #44871 (so we shouldn't close #44884 yet) 2009-04-10 01:58:31 +00:00
Kenichi Ishigaki
30599f51bc DBD-SQLite: effort to resolve #44884; removed last DBIS in sqlite_init 2009-04-10 01:21:48 +00:00
Kenichi Ishigaki
9360dc33d0 DBD-SQLite: effort to resolve #44884; added PERL_NO_GET_CONTEXT and necessary "dTHX"s ("dTHR" in the ticket is actually a no-op). Some of these "dTHX" would be converted into "pTHX_"/"aTHX_" combo later. 2009-04-09 05:44:13 +00:00
Kenichi Ishigaki
0a29d5e86d DBD-SQLite: effort to resolve #44884; refactored error handling to follow DBI's best practices 2009-04-09 04:31:22 +00:00
Kenichi Ishigaki
2932e4d8d0 DBD-SQLite: effort to resolve (part of the) #44871; removed most of the "croak"s (except for the ones for "func"s) 2009-04-09 03:31:43 +00:00
Kenichi Ishigaki
4764183032 DBD-SQLite: effort to resolve #44884; added a comment to the last DBIS line. looks like that line can be removed, too, but not sure yet (confirmed all the tests pass without it) 2009-04-09 00:55:57 +00:00
Kenichi Ishigaki
c7435338dd DBD-SQLite: effort to resolve #44884; removed DBIS->debug 2009-04-09 00:39:18 +00:00
Kenichi Ishigaki
6513771152 DBD-SQLite: effort to resolve #44884; pass handle and imp_xxh into sqlite_trace 2009-04-09 00:32:21 +00:00
Kenichi Ishigaki
7ecd1839b9 DBD-SQLite: added SQL_NULLABLE_UNKNOWN; still wonders if the error above should be ignored or not 2009-04-08 05:23:13 +00:00
Kenichi Ishigaki
b0792ba325 DBD-SQLite: added comments on the return values on error, and fixed another wrong return value in execute 2009-04-08 05:07:05 +00:00
Laurent Dami
217be4e24d fixed RT#25924 (Arguments to user-defined functions do not respect unicode setting) 2009-04-08 04:32:51 +00:00
Tatsuhiko Miyagawa
4ac21a0057 Calls sv_utf8_upgrade in sqlite_st_execute() so passed string values
are correctly assumed Perl unicode strings, instead of relying on its
internal character encoding as UTF-8.

This *might* break (potentially broken) apps that passes UTF-8 encoded
strings, instead of decoded strings, to ->execute or ->bind_param()
without SQL_BLOB. But this new behavior is more natural to how Perl
handles strings and consisten to what other drivers do under UTF-8
options set, e.g. DBD::mysql with mysql_enable_utf8 option. See also
http://use.perl.org/~miyagawa/journal/38770 for details.

Fixes RT bug 25371.
2009-04-08 01:36:29 +00:00
Kenichi Ishigaki
ef56832c32 DBD-SQLite: found there was a better way to return undef... 2009-04-07 18:33:32 +00:00
Kenichi Ishigaki
e674c69e0f DBD-SQLite: needs to cast to avoid warnings 2009-04-07 17:11:50 +00:00
Kenichi Ishigaki
85d1b98aa2 DBD-SQLite: this must be a better fix 2009-04-07 16:51:53 +00:00
Kenichi Ishigaki
2be3b7ec3a DBD-SQLite: this fixes the broken dbic reconnection issue but not sure why yet... 2009-04-07 16:49:46 +00:00
Kenichi Ishigaki
aa9335b2af DBD-SQLite: initialize a variable 2009-04-05 13:26:48 +00:00
Kenichi Ishigaki
12d7cdda62 DBD-SQLite: removed unused variables to suppress warnings at compile time 2009-04-05 13:24:45 +00:00
Kenichi Ishigaki
6b8dc80622 DBD-SQLite: applied an enable_load_extension patch from RT #32998 2009-04-05 13:04:56 +00:00
Kenichi Ishigaki
38451d9dc1 DBD-SQLite: added error handling 2009-04-05 12:20:10 +00:00
Kenichi Ishigaki
d7104b39ff DBD-SQLite: implemented NULLABLE attribute to resolve RT #40594 2009-04-05 10:16:45 +00:00
Kenichi Ishigaki
14b5e9270b DBD-SQLite: hopefully resolved RT #29058; don't quote (as text) when a bind param look like a number 2009-04-05 02:05:15 +00:00