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

295 commits

Author SHA1 Message Date
Kenichi Ishigaki
937f856f37 compile options 2010-05-20 03:04:03 +00:00
Kenichi Ishigaki
ce4a01170f DBD::SQLite: (hopefully) silenced warnings 2010-03-29 23:46:25 +00:00
Kenichi Ishigaki
80b0265961 DBD::SQLite: implemented sqlite_use_immediate_transaction to address #46289 and #42205 2010-03-27 19:07:55 +00:00
Kenichi Ishigaki
d003fb74dd DBD::SQLite: silenced warnings 2010-02-23 13:00:11 +00:00
Kenichi Ishigaki
413b1daab4 DBD::SQLite: all of the current sth attributes can be taken before execute 2010-02-11 13:36:10 +00:00
Kenichi Ishigaki
3db3c32273 DBD::SQLite: resolved #54271 2010-02-09 15:12:41 +00:00
Kenichi Ishigaki
5040024ca9 experimental sqlite_allow_multiple_statements/sqlite_unprepared_statements attribute to allow processing a SQL dump 2010-01-11 07:34:30 +00:00
Kenichi Ishigaki
8d4756d31c avoid confusion by manual commit/rollback 2010-01-01 11:59:39 +00:00
Kenichi Ishigaki
c8502a2bbf don't bother BegunWork flag if AutoCommit is off 2010-01-01 11:11:05 +00:00
Kenichi Ishigaki
a3ef235101 removed debug info 2010-01-01 08:52:10 +00:00
Kenichi Ishigaki
fc6dc7a3d3 DBD::SQLite: empty or comment-only statements shouldn't die. issue spotted by tokuhirom++ 2009-12-26 03:17:02 +00:00
Kenichi Ishigaki
5a755b8ca7 DBD::SQLite: fixed #52573 manual transaction issue; please ship this as a dev release (or a prod one if you prefer) to see if this would also fix other major tools like CPANPLUS etc, which 1.27 reportedly broke 2009-12-20 03:12:06 +00:00
Kenichi Ishigaki
77cdbe4733 silence warnings on HP-UX, spotted by Tux 2009-11-25 12:02:53 +00:00
Kenichi Ishigaki
e60d50b81e DBD::SQLite: let us know if the debug macros are enabled 2009-11-03 17:24:34 +00:00
Kenichi Ishigaki
39c5139fd3 DBD::SQLite: added debug macros 2009-11-03 17:13:17 +00:00
Kenichi Ishigaki
1a976e892b DBD::SQLite: clarify which sql is being executed while tracing 2009-11-03 13:50:25 +00:00
Kenichi Ishigaki
dfff65b64d DBD::SQLite: disabled the foreign key support by default again, and added notes for that 2009-11-03 07:54:39 +00:00
Kenichi Ishigaki
941ba0cb65 DBD::SQLite: some cleanup 2009-11-02 12:42:09 +00:00
Kenichi Ishigaki
895897258b DBD::SQLite: renamed "unicode" attribute to "sqlite_unicode" 2009-10-21 02:36:14 +00:00
Kenichi Ishigaki
9a3151e321 DBD::SQLite: reorganized methods 2009-10-20 20:11:33 +00:00
Kenichi Ishigaki
8cabc9992c DBD::SQLite: removed several commented-out warns 2009-10-20 19:31:43 +00:00
Kenichi Ishigaki
f8a471de36 DBD::SQLite: don't need to store a statement in imp_sth->statement as we can retrieve it from sqlite3_sql(imp_sth->stmt) 2009-10-20 19:27:22 +00:00
Kenichi Ishigaki
cf1fb1b652 DBD::SQLite: switched from (deprecated) sqlite_db_login to _login6 2009-10-20 17:26:03 +00:00
Kenichi Ishigaki
c58599e164 DBD::SQLite: unnecessary type casts 2009-10-20 17:03:21 +00:00
Kenichi Ishigaki
e29628f340 DBD::SQLite: added (_)sqlite_open to hide error handling (and closing the failed handle) 2009-10-20 16:56:47 +00:00
Kenichi Ishigaki
02cc347e41 DBD::SQLite: enable foreign keys support by default 2009-10-20 16:51:05 +00:00
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