From: Shashank Date Date: 2003-02-27T12:11:26+09:00 Subject: dbi BUG ? This is a multi-part message in MIME format. --Boundary_(ID_1z+jDNbTnJUPOxHQK0KnVg) Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT I downloaded and installed the latest release of dbi (0.0.18) and ran the following test using ADO: # ------------------------- require 'dbi' URL = 'dbi:ADO:Provider=SQLOLEDB;Data Source=(local);' + 'Initial Catalog=master;User Id=sa;Password=;' DBI.connect(URL) do |dbh| i = 0 sql = "select * from dbo.sysindexes" sth = dbh.execute(sql) sth.fetch { |row| i += 1 print i,' ' p row } end # --------------------------- And I get: C:/ruby/lib/ruby/site_ruby/1.7/DBD/ADO/ADO.rb:216: [BUG] Segmentation fault This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. The same code works for other tables if they are small ( < 60 rows). Is this some kind of a memory issue ? I am using ruby 1.7.3 (2002-11-17) [i386-mswin32] on Win XP Pro. The Database is SQL 2000 Developers Edition. I had to uninstall the older version of dbi which was automatically installed by the one-click Windows Installer before I could install this new release. I did this by manually deleting files which caused the dbi install process to fail. Did I do it wrong ? Any help will be highly appreciated ... TIA, -- shanko --Boundary_(ID_1z+jDNbTnJUPOxHQK0KnVg) Content-type: text/html; charset=iso-8859-1 Content-transfer-encoding: 7BIT
I downloaded and installed the latest release of dbi (0.0.18) and ran the following test using ADO:
 
# -------------------------
require 'dbi'
 
URL = 'dbi:ADO:Provider=SQLOLEDB;Data Source=(local);'  +
          'Initial Catalog=master;User Id=sa;Password=;'
 
DBI.connect(URL) do |dbh|
 
   i    =  0    
   sql = "select * from dbo.sysindexes"
    
   sth = dbh.execute(sql)
   sth.fetch { |row|
        i += 1
        print i,' '
        p row
    }
 
end
# ---------------------------
 
And I get:
 
        C:/ruby/lib/ruby/site_ruby/1.7/DBD/ADO/ADO.rb:216: [BUG] Segmentation fault
 
        This application has requested the Runtime to terminate it in an unusual way.
        Please contact the application's support team for more information.
The same code works for other tables if they are small ( < 60 rows).
Is this some kind of a memory issue ?
 
I am using ruby 1.7.3 (2002-11-17) [i386-mswin32] on Win XP Pro.
The Database is SQL 2000 Developers Edition.
 
I had to uninstall the older version of dbi which was automatically installed by the
one-click Windows Installer before I could install this new release. I did this by manually
deleting files which caused the dbi install process to fail.
 
Did I do it wrong ?
 
Any help will be highly appreciated ... TIA,
-- shanko
 

 
--Boundary_(ID_1z+jDNbTnJUPOxHQK0KnVg)--