[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Re: Ruby-MySql error

Travis D Warlick Jr

7/9/2007 12:58:00 PM

swanand deodhar wrote:
> Hi!
> I was doing some really really simple stuff with Ruby DBI...
>
> new_conn = DBI.connect("DBI:Mysql:test:localhost", "root", "pwd")
> new_conn.tables.each do |table|
> new_conn.columns(table).each do |columninfo|
> print columninfo['name']
> end
> end
>
> and strangely enough i am encountering this error:
>
> Mysql.rb:662
> `column_info': undefined method `is_not_null?' for #<Mysql::Field:Table>
>
> Any ideas or has anyone encountered this kind of an error before?

2 Things:

1) Where did you get your Mysql driver? (eg. ActiveRecord gem, from
MySQL.com, etc)

2) Please post the entire exception trace.

-
*************************************
* Travis D Warlick, Jr
* Lead Developer
* Operis Systems, LLC
*************************************