Package: libdbd-sqlite3-ruby1.8
Version: 0.2.2-1
Severity: normal
Tags: patch

Hello,

There is a small copy-paste error in the SQLite3 driver file:
DBD/SQLite3/SQLite3.rb

In the function def []=(attr, value), we should call busy_handler 
rather than busy_timeout when we want to change the 'busy' handler.

Regards,

Romain Gayon



-- System Information:
Debian Release: 5.0.4
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.27.29-4-grsec (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libdbd-sqlite3-ruby1.8 depends on:
ii  libdbi-ruby1.8                0.2.2-1    Database Independent Interface for
ii  libsqlite3-ruby1.8            1.2.2-1    SQLite3 interface for Ruby 1.8

libdbd-sqlite3-ruby1.8 recommends no packages.

libdbd-sqlite3-ruby1.8 suggests no packages.

-- no debconf information
--- SQLite3.rb  2008-08-15 18:31:40.000000000 +0200
+++ /usr/lib/ruby/1.8/DBD/SQLite3/SQLite3.rb    2009-11-30 11:52:24.000000000 
+0100
 
@@ -213,7 +214,7 @@
             @db.busy_timeout(value)
             @attr[attr] = value
           when 'busy_handler'
-            @db.busy_timeout(&value)
+            @db.busy_handler(&value)
             @attr[attr] = value
           when 'type_translation'
             @db.type_translation = value

Reply via email to