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-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Segmentation Fault when I use query in Mysql/Ruby
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password