Forums | Admin

Discussion Forums: open-discussion

Start New Thread Start New Thread
Message: 62873
BY: Gabriele Tassoni (iltasu)
DATE: 2008-12-07 08:50
SUBJECT: Segmentation fault for just selecting datas

 

Hallo,
I'm experencing constant segfaults when trying to select the fields in a table, here is the error:

/Library/Ruby/Gems/1.8/gems/dbd-odbc-0.2.4/lib/dbd/odbc/database.rb:79: [BUG] Segmentation fault
ruby 1.8.6 (2008-03-03) [universal-darwin9.0]

Here is the code:

DBI.connect('DBI:ODBC:CARS', '', '') do |dbh|
dbh.select_all("select DISTINCT BRAND_NAME as brand from VEICULOS where BRAND_NAME is not NULL") do |brand|
p "INSERT INTO brands (id, name, created_at) VALUES (#{number_of_brands}, '#{brand[:brand].clean_string}', CURRENT_TIMESTAMP);"
number_of_brands = number_of_brands + 1
end
end

Thnk you for the help sorting this out.


Thread View

Thread Author Date
Segmentation fault for just selecting datasGabriele Tassoni2008-12-07 08:50
      RE: Segmentation fault for just selecting datGabriele Tassoni2008-12-07 09:00
            RE: Segmentation fault for just selecting datErik Hollensbe2008-12-07 21:21
                  RE: Segmentation fault for just selecting datErik Hollensbe2008-12-07 21:23

Post a followup to this message