Segmentation Fault when I use query in Mysql/Ruby

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

When I run this simple script:

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”)


Server version: 5.0.24a-log // so its working and connect to server ?
Segmentation fault // but query always give sf

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs