ruby driver postgresql

From: "Junkone" <junkone1(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: ruby driver postgresql
Date: 2006-08-24 19:11:28
Message-ID: 1156446688.163254.31390@74g2000cwt.googlegroups.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2006-08-24 19:13:04 Re: SQL:2003 Window Functions for postgresql 8.3?
Previous Message Ben 2006-08-24 19:07:48 Re: SQL:2003 Window Functions for postgresql 8.3?