Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > binding variables

Thread Tools

binding variables

Matthew Campbell
Posts: n/a

Just trying to pick up ruby and have a problem with binding variables to
postgres query.

I have
query = conn.exec("SELECT id FROM xxx where id=$1",4)

However, get "Exception: uninitialized constant Postgres" . I am using
the ruby-pg gem.

Any suggestions

Posted via

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Put variables into member variables or function variables? C++ 9 03-23-2008 04:03 PM
GridView binding - how to stop initial binding Amit ASP .Net 6 10-24-2006 08:06 AM
pywin32 COM sort in Excel (late binding fails, early binding works) (+py2exe) Python 2 10-20-2006 04:08 PM
Complex data binding question, binding child objects of a custom collection. JcFx ASP .Net Datagrid Control 0 06-01-2005 04:01 PM
Data Binding - using inline code vs. functions vs. straight binding Jordan ASP .Net 2 02-10-2004 08:32 PM