ruby driver postgresql - Mailing list pgsql-general

From Junkone
Subject ruby driver postgresql
Date
Msg-id 1156446688.163254.31390@74g2000cwt.googlegroups.com
Whole thread Raw
Responses Re: ruby driver postgresql  (Michael Fuhr <mike@fuhr.org>)
List pgsql-general
HI
I am using the C driver and am trying to run this statement
irb(main):020:0> a=conn.exec("select * from exchanges where id=$1",4)
ArgumentError: wrong number of arguments (2 for 1)
        from (irb):20:in `exec'
        from (irb):20
        from :0
irb(main):021:0>

I get the error. But the ruby doc stats that i can use this parameteric
query. any pointers will be useful.
Regarfds

Seede


pgsql-general by date:

Previous
From: "JamieD"
Date:
Subject: PG8 Stalling/Not Exit/Not Performing Issue
Next
From: Sergiusz Jarczyk
Date:
Subject: Re: CMS - portal server Question