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

219 commits

Author SHA1 Message Date
Kenichi Ishigaki
b93cb221fa DBD::SQLite: added (_)sqlite_exec to hide error handling 2009-10-20 16:50:14 +00:00
Kenichi Ishigaki
8b24efecf9 DBD::SQLite: we don't need to discard the database handle even if these pragmata should fail 2009-10-20 16:19:42 +00:00
Kenichi Ishigaki
e37b62e6ef DBD::SQLite: made it a bit easier to call sqlite_error 2009-10-20 15:47:33 +00:00
Kenichi Ishigaki
19be407a77 DBD::SQLite: trace levels less than 3 are reserved for DBI 2009-10-19 16:18:54 +00:00
Kenichi Ishigaki
1de89394b9 DBD::SQLite: type casts can be done in the macros 2009-10-19 16:11:00 +00:00
Kenichi Ishigaki
43fc56529d DBD::SQLite: new tracer doesn't need \n 2009-10-19 15:46:19 +00:00
Kenichi Ishigaki
abdfff86e8 DBD::SQLite: refactored trace; this should be a bit faster and (hopefully) more portable 2009-10-19 15:37:26 +00:00
Kenichi Ishigaki
0dcc7ca72b DBD::SQLite: looks like the segfault is gone, but please wait for a while to see if this fix really *fix* the real problems. we need more teests 2009-10-19 14:56:36 +00:00
Kenichi Ishigaki
fa1267bb7a DBD::SQLite: silence another warning 2009-10-19 07:20:21 +00:00
Kenichi Ishigaki
bcdce2f1fc DBD::SQLite: cosmetics and squash a warning 2009-10-19 07:19:25 +00:00
Kenichi Ishigaki
e4ccb21f9c DBD::SQLite: previous disconnect procedure doesn't work properly as it doesn't take several things into account. it seems better to fix other parts that start to break again... 2009-10-19 07:05:44 +00:00
Kenichi Ishigaki
6c8539ef43 DBD::SQLite: sqlite3_next_stmt returns a pointer or NULL, not SQLITE_OK 2009-10-19 05:51:24 +00:00
Kenichi Ishigaki
a8ab9bd263 DBD::SQLite: done cleanup for now 2009-10-18 15:07:17 +00:00
Kenichi Ishigaki
234d619b21 DBD::SQLite: more cleanup 2009-10-18 14:18:28 +00:00
Kenichi Ishigaki
c377a44184 DBD::SQLite: more cleanup 2009-10-18 14:01:20 +00:00
Kenichi Ishigaki
2fa57ee8fa DBD::SQLite: removed undocumented and useless reset method from a statement handle 2009-10-18 13:37:11 +00:00
Kenichi Ishigaki
3d8e897d58 DBD::SQLite: more cleanup 2009-10-18 13:11:07 +00:00
Kenichi Ishigaki
26cde8f98c DBD::SQLite: a bit cleanup 2009-10-18 12:36:59 +00:00
Kenichi Ishigaki
f1dd33e052 DBD::SQLite: if we fail to set a pragma and return undef, we can't use the handle anymore. so close it before we return 2009-10-18 08:51:59 +00:00
Kenichi Ishigaki
ba00282533 DBD::SQLite: tracer should use sqlite_trace for clarity 2009-10-18 08:32:13 +00:00
Kenichi Ishigaki
8e5e323bd2 DBD::SQLite: sqlite API doc suggests to close the handle you tried to open but failed anyway 2009-10-18 06:03:53 +00:00
Kenichi Ishigaki
d6af16bea5 DBD-SQLite: Tweaked not to hide a real error by a "not an error" issued by another sqlite3 function between the failed sqlite3 function and the sqlite_error to report.
Note that this change makes some failures issue two relevant errors at a time.
2009-10-06 04:29:05 +00:00
Kenichi Ishigaki
9949f79127 DBD-SQLite: replaced last DBILOGFP with DBIc_LOGPIO(imp_xxh) as strongly recommended in DBI::Changes (see notes for 1.31) 2009-08-13 18:51:34 +00:00
Kenichi Ishigaki
6de5c908f7 DBD-SQLite: now BegunWork (set by begin_work) is handled properly (as requested in DBI::Changes; see notes for 1.20), and this resolved rt #48393.
In fact, it looks like I lost this code by mistake while preparing the previous release. I remember I wrote this before...

I added a test for this, but as it requires the perl debugger, it is disabled by default. Wondering if we can do it without calling system() and the likes...
2009-08-13 11:28:40 +00:00
Kenichi Ishigaki
d022f11ed9 DBD-SQLite: use sqlite3_get_autocommit instead of dbh->in_tran; I hope this would fix the test failure on 5.10.1 rc1 2009-08-11 12:20:28 +00:00
Laurent Dami
fb8cd54ee5 fixed one pointer conversion warning, and removed an unnecessary mortalization 2009-08-07 06:00:30 +00:00
Laurent Dami
ec38f98792 new implementation for collation_needed, no more malloc -- should no longer leak
new API for global registry of collations, using a "write-once" tied hash
2009-08-06 14:22:12 +00:00
Kenichi Ishigaki
a87ac54afb DBD-SQLite: fixed leaks by sqlite3_exec errors 2009-07-23 17:55:38 +00:00
Kenichi Ishigaki
6cfea888c7 DBD-SQLite: tentatively disabled collation_needed stuff as it leaks badly 2009-07-23 15:50:12 +00:00
Kenichi Ishigaki
baebd1593e DBD-SQLite: make it shorter 2009-07-21 18:00:16 +00:00
Kenichi Ishigaki
fd6c9caa0c DBD-SQLite: perl 5.10 prefers XPUSHs(sv_2mortal(&PL_sv_undef)) 2009-07-21 17:49:53 +00:00
Kenichi Ishigaki
4f5603f3db DBD-SQLite: fixed the perl 5.8 segfault issue for set_authorizer 2009-07-21 17:32:31 +00:00
Kenichi Ishigaki
1ca47cd329 DBD-SQLite: whitespace cleanup 2009-07-21 06:41:23 +00:00
Kenichi Ishigaki
bb74084586 DBD-SQLite: renamed several sqlite3_ functions to sqlite_, as sqlite3_ prefix should only be used for native sqlite3 functions 2009-07-21 06:34:11 +00:00
Laurent Dami
3714dc6954 - Added support for commit/rollback/update hooks (DAMI)
- Added support for set_authorizer (DAMI)
    - Added support for collation_needed(), and reorganised driver API
      for user-defined collations (DAMI)
    - Exported constants from sqlite3.h into DBD::SQLite namespace (DAMI)
    - Added support in t/lib/Test.pm for checking both versions of
      driver-private methods ("func" / "sqlite_*") (DAMI)
    - Removed unused and obsolete "list_tables" from SQLite.xs (DAMI)
    - Added a default implementation for the REGEXP infix operator (DAMI)
2009-07-20 10:20:09 +00:00
Kenichi Ishigaki
aa66666a9d DBD-SQLite: fixed wrong indent for clarity 2009-07-17 03:18:49 +00:00
Kenichi Ishigaki
1bb88bfae0 DBD-SQLite: don't cache a statement if it is not properly prepared to avoid memory leakage 2009-07-16 17:27:56 +00:00
Kenichi Ishigaki
bcefc3c6c9 DBD-SQLite: squash further warnings 2009-06-19 06:23:21 +00:00
Kenichi Ishigaki
9e73f3d401 DBD-SQLite: made several callbacks back to int instead of static int (incompatible pointer type) 2009-06-19 06:13:41 +00:00
Kenichi Ishigaki
c831b89e7e DBD-SQLite: removed all of the "croak"s to close #44871 2009-05-29 11:23:26 +00:00
Kenichi Ishigaki
1c06ff021e DBD-SQLite: made sure if private methods/functions return true after successful calls (#44871) 2009-05-06 12:18:37 +00:00
Kenichi Ishigaki
b78c888711 DBD-SQLite: fixed return value of create_aggregate 2009-05-06 10:19:29 +00:00
Kenichi Ishigaki
400dc2b884 DBD-SQLite: fixed return value of enable_load_extension 2009-05-06 10:16:57 +00:00
Kenichi Ishigaki
e471875089 DBD-SQLite: fixed return value of create_function 2009-05-06 10:14:47 +00:00
Kenichi Ishigaki
a8346d9b42 DBD-SQLite: fixed return value of progress_handler 2009-05-06 09:40:43 +00:00
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