Re: [postmodern-devel] Patch: {} syntax for arrays should be inside ''

2011-02-15 Thread Marijn Haverbeke
Thanks! Pushed to the repository. Best, Marijn ___ postmodern-devel mailing list postmodern-devel@common-lisp.net http://common-lisp.net/cgi-bin/mailman/listinfo/postmodern-devel

Re: [postmodern-devel] Patch: {} syntax for arrays should be inside ''

2011-02-15 Thread Stas Boukarev
Marijn Haverbeke writes: > Hi Stas, > > What happens when, with your patch, you try to pass an array as a > query parameter? ($1, etc) I suspect the correct thing to do would be > to return T as a second value from to-sql-string (which indicates that > the string should be escaped when put into a

Re: [postmodern-devel] Patch: {} syntax for arrays should be inside ''

2011-02-14 Thread Marijn Haverbeke
Hi Stas, What happens when, with your patch, you try to pass an array as a query parameter? ($1, etc) I suspect the correct thing to do would be to return T as a second value from to-sql-string (which indicates that the string should be escaped when put into a query), rather than putting quotes in

Re: [postmodern-devel] Patch: {} syntax for arrays should be inside ''

2011-02-14 Thread Stas Boukarev
Stas Boukarev writes: > Stas Boukarev writes: > >> According to >> http://www.postgresql.org/docs/current/static/arrays.html#ARRAYS-INPUT >> arrays should look like '{ val1 delim val2 delim ... }', but cl-postgres >> sends them as {val1 ...}, the attached patch corrects this. Aw, now I hit C-x

Re: [postmodern-devel] Patch: {} syntax for arrays should be inside ''

2011-02-14 Thread Stas Boukarev
Stas Boukarev writes: > According to > http://www.postgresql.org/docs/current/static/arrays.html#ARRAYS-INPUT > arrays should look like '{ val1 delim val2 delim ... }', but cl-postgres > sends them as {val1 ...}, the attached patch corrects this. Well, that was too soon, I forgot to attach the p