[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Segmentation Fault when I use query in Mysql/Ruby

Adam Wrobel

3/14/2008 9:07:00 AM

Hi, I have strange problem with MySQL/Ruby (mysql-ruby-2.8pre2).

When I run this simple script:

#!/usr/local/bin/ruby
require "mysql"
dbh = Mysql.real_connect("localhost", "root", "xx", "xx")
# get server version string and display it
puts "Server version: " + dbh.get_server_info
res = dbh.query("select * from _produkty")

output:

#./mysql.rb
Server version: 5.0.24a-log // so its working and connect to server ?
Segmentation fault // but query always give sf
--
Posted via http://www.ruby-....