Thank you.<div><br></div><div>Sabra<br><br><div class="gmail_quote">On Sun, Jan 13, 2013 at 12:31 PM, Marijn Haverbeke <span dir="ltr"><<a href="mailto:marijnh@gmail.com" target="_blank">marijnh@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This seems to work:<br>
<br>
(pomo:execute (:insert-into 'test2 :set 'id 1 'name "t2" 'stuff1<br>
#(22 24 21 20) 'stuff2 #(#(2 4) #(6 7))))<br>
<br>
Best,<br>
Marijn<br>
<div><div class="h5"><br>
On Sun, Jan 13, 2013 at 6:58 AM, Sabra Crolleton<br>
<<a href="mailto:sabra.crolleton@gmail.com">sabra.crolleton@gmail.com</a>> wrote:<br>
> I thought I understood the s-sql syntax on inserting into an array. Then I<br>
> tried it. No, I do not understand the s-sql array syntax for an insert-into<br>
> statement.<br>
><br>
> Does anyone have a simple example?<br>
><br>
> As a sampe:<br>
> (query (:create-table test2 ((id :type serial) (name :type text) (stuff1<br>
> :type int4[]) (stuff1 :type int4[]))))<br>
><br>
> What would be the equivalent s-sql to<br>
><br>
> (query "insert into test2 values (1,'t2','{22,24,21,20}','{{2,4},{6,7}}')")<br>
><br>
> Such that<br>
><br>
> (query (:select (:[] 'stuff2 1 1) :from 'test2 :where (:= 'id 1)) :single)<br>
> #2A((2 4))<br>
><br>
> Thank you for any explanations or pointers.<br>
><br>
> Sabra Crolleton<br>
><br>
</div></div>> _______________________________________________<br>
> postmodern-devel mailing list<br>
> <a href="mailto:postmodern-devel@common-lisp.net">postmodern-devel@common-lisp.net</a><br>
> <a href="http://lists.common-lisp.net/cgi-bin/mailman/listinfo/postmodern-devel" target="_blank">http://lists.common-lisp.net/cgi-bin/mailman/listinfo/postmodern-devel</a><br>
><br>
<br>
_______________________________________________<br>
postmodern-devel mailing list<br>
<a href="mailto:postmodern-devel@common-lisp.net">postmodern-devel@common-lisp.net</a><br>
<a href="http://lists.common-lisp.net/cgi-bin/mailman/listinfo/postmodern-devel" target="_blank">http://lists.common-lisp.net/cgi-bin/mailman/listinfo/postmodern-devel</a><br>
</blockquote></div><br></div>