# Ruby-odbc giving memory access error

**URL:** <https://rubytalk.org/t/ruby-odbc-giving-memory-access-error/41079>\
**Category:** ruby-talk\
**Created:** [1 October 2007 15:40 UTC](https://rubytalk.org/t/ruby-odbc-giving-memory-access-error/41079 "2007-10-01T15:40:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dean\_Holdren1](https://avatars.discourse-cdn.com/v4/letter/d/e9a140/32.png) [@Dean\_Holdren1](https://rubytalk.org/u/Dean_Holdren1)\
**Post date:** [1 October 2007 15:40 UTC](https://rubytalk.org/t/ruby-odbc-giving-memory-access-error/41079/1 "2007-10-01T15:40:20Z")

</div>

I'm using ruby-odbc on a macbook pro, trying to connect to an Oracle  
database (10g), using Actual Technologies ODBC driver, I was working  
through bugs until I got to this:

$ irb

> > require 'odbc'

=\> true

> > conn = ODBC::connect('mySID', 'user', 'pass')

=\> #\<ODBC::Database:0x10bf800\>

> > stmt = conn.indexes('MY\_TABLE')

Invalid memory access of location 00000000 eip=0131509f  
(irb):3: [BUG] Bus Error  
ruby 1.8.6 (2007-03-13) [i686-darwin8.9.1]
