mysql with 1.9.2 query: wrong argument tile Mysql (expected Struct) TypeError

Discussion in 'Ruby' started by Love4llamas, Oct 13, 2011.

  1. Love4llamas

    Love4llamas Guest

    Using rvm, this works fine in 1.8.7 but fails in 1.9.2 with query:
    wrong argument tile Mysql (expected Struct) TypeError

    require 'mysql'

    mysql_connection = Mysql::new(@mysql_host, @mysql_user,
    @mysql_password, @mysql_db)
    mysql_connection.query("delete from mytable")
    mysql_connection.close

    Any suggestions would be appreciated!
     
    Love4llamas, Oct 13, 2011
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.