From: Shashank Date Date: 2003-02-27T14:18:06+09:00 Subject: Re: dbi BUG ? This is a multi-part message in MIME format. ------=_NextPart_000_00ED_01C2DDEC.F9ED6420 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I did not get this error when I ran it on ruby 1.7.3 (2002-10-12) = [i386-mswin32] on Win 2K Pro. Everything else was the same. "Shashank Date" wrote in message = news:003c01c2de0d$e13715e0$1f02a8c0@emachine... I downloaded and installed the latest release of dbi (0.0.18) and ran = the following test using ADO: # ------------------------- require 'dbi' URL =3D 'dbi:ADO:Provider=3DSQLOLEDB;Data Source=3D(local);' +=20 'Initial Catalog=3Dmaster;User Id=3Dsa;Password=3D;' DBI.connect(URL) do |dbh| i =3D 0 =20 sql =3D "select * from dbo.sysindexes" =20 sth =3D dbh.execute(sql)=20 sth.fetch { |row| i +=3D 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).=20 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=20 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 ?=20 Any help will be highly appreciated ... TIA, -- shanko =20 ------=_NextPart_000_00ED_01C2DDEC.F9ED6420 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I did not get this error when I ran it = on ruby=20 1.7.3 (2002-10-12) [i386-mswin32] on Win 2K Pro.
Everything else was the = same.
"Shashank Date" <sdate@everestkc.net> wrote = in message=20 news:003c01c2de0d$e= 13715e0$1f02a8c0@emachine...
I downloaded and installed the latest = release of=20 dbi (0.0.18) and ran the following test using ADO:
 
# = -------------------------
require 'dbi'
 
URL =3D = 'dbi:ADO:Provider=3DSQLOLEDB;Data=20 Source=3D(local);'  +
          'Ini= tial=20 Catalog=3Dmaster;User Id=3Dsa;Password=3D;'
 
DBI.connect(URL) do = |dbh|
 
   i    = =3D =20 0    
   sql =3D "select * from=20 dbo.sysindexes"
    
   sth =3D dbh.execute(sql)
   sth.fetch {=20 |row|
        i +=3D=20 1
        print i,'=20 '
        p = row
   =20 }
 
end
# = ---------------------------
 
And I get:
 
       =20 C:/ruby/lib/ruby/site_ruby/1.7/DBD/ADO/ADO.rb:216: [BUG] Segmentation=20 fault
 
        This=20 application has requested the Runtime to terminate it in an unusual=20 way.
        Please contact the=20 application's support team for more information.
The same code works for other tables = if they are=20 small ( < 60 rows).
Is this some kind of a memory issue=20 ?
 
I am using ruby 1.7.3 (2002-11-17) = [i386-mswin32]=20 on Win XP Pro.
The Database is SQL 2000 Developers=20 Edition.
 
I had to uninstall the older version = of dbi which=20 was automatically installed by the
one-click Windows Installer before I = could=20 install this new release. I did this by manually
deleting files which caused the dbi = install=20 process to fail.
 
Did I do it wrong ?
 
Any help will be highly appreciated = ....=20 TIA,
-- shanko
 

 
------=_NextPart_000_00ED_01C2DDEC.F9ED6420--