chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] Awful ($db ...)


From: David Ireland
Subject: [Chicken-users] Awful ($db ...)
Date: Sun, 7 Oct 2018 21:08:48 +1000

Hi,

I'm using the database access in Awful and I'm having the troubles recreating an example in the docs.  After setting up a dummy postgres database I tried this example:
($db "insert into foo (bar, baz) values (?, ?)" values: '("bar-val" "baz-val"))

Which produced this error: 
<eval>	  ($db "insert into foo (bar, baz) values (?, ?)" values: (quote ("bar-val" "baz-val")))	<--

Error: (get-last-result) ERROR:  syntax error at or near ","
LINE 1: insert into foo (bar, baz) values (?, ?)

If I manually add the values using: 

($db "insert into company (bar, baz) values ('bar-val', 'baz-val')")

It works fine.  Am I missing something with the former? 

Thanks.
David
 

 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]