forked from Pistos/ruby-dbi
-
Notifications
You must be signed in to change notification settings - Fork 1
Home
pilcrow edited this page Sep 13, 2010
·
11 revisions
Fork of erikh’s ruby-dbi wiki
-
mysql_misc
DBD::Mysql typemap, doc improvement, small refactoring
-
small_fixes
DBD::Mysql typemap,Null#parseregex precompilation, and dbh.driver_name= arg freeze(),
-
dbd_pg
COPYsupport, deprecate'pg_native_binding'support, pilcrow’s pstmt collision fix
-
dbd_pg-Pistos-collision
As above, Pistos’ pstmt collision fix
-
func_block
dbh.func :whatever do ... end
-
nil_handle
Not Ready refactoring for clarity.
- urgent fix #27196 dbd-mysql-0.4.3 type conversions broken under ruby-1.9.1
- Simplified
Mysql::Statement: removal of unneeded and incompletely applied @’’@mutex@, simplified#execute()and#column_info() - Corrected documentation on
#commit()&c. against non-transactional storage engines, refactored transactionNotImplementedErroragainst non-transactional server backends, added more consistent error-checking and two#funcfunctions (:warning_countand:sqlstate)
dbd-pg improvements
- pg
COPYsupport (patch rf-27105) - direct (unprepared)
Pg::Database#doimplementation (patch rf-27105) - pstmt identifier collision recovery (bug rf-27113) (see also dbd-pg-Pistos-collision)
-
N.B. deprecates
pg_native_bindingattribute, remove non-defaultdbh['pg_native_binding']=falsesupport (bug rf-27121)
As for dbd-pg above, but showing Pistos’ stmt collision avoidance scheme rather than mine.
Refactoring for an AFNP approach under lib/dbi
- All
Handleshave aNilHandlesingleton - Most
StatementHandle#fetch_*reimplemented in terms of a basicfetchwith -
DatabaseHandle#executereimplemented in terms of#prepare/StatementHandle#executeper the docs
N.B.:DBD::Driver::Database#executeis obsolete, usedbh.do()if you want (possibly supported) “direct sql” -
FIXME: tests needed for
fetchmethods when un-executed, when exhausted
Extend DBI::Handle#func to support blocks, crudely discriminate caller errors (yours) from implementation errors (mine). patch rf-27130