Re: ClojureQL: debugging generated SQL / Dates

2011-07-28 Thread Meikel Brandmeyer
Hi, Am 28.07.2011 um 21:10 schrieb Brian Marick: > > On Jul 27, 2011, at 7:26 PM, Brian Marick wrote: >> How *does* one provide dates to ClojureQL for transmission to Postgres? I >> want to do something like this: >> >> (ql/conj! (ql/table :animals) {:official_name "fred" :added_to_service >

Re: ClojureQL: debugging generated SQL / Dates

2011-07-28 Thread Brian Marick
On Jul 27, 2011, at 7:26 PM, Brian Marick wrote: > How *does* one provide dates to ClojureQL for transmission to Postgres? I > want to do something like this: > > (ql/conj! (ql/table :animals) {:official_name "fred" :added_to_service > <<>>}) Boy I was dumb yesterday: user> (ql/conj! (ql/ta

ClojureQL: debugging generated SQL / Dates

2011-07-27 Thread Brian Marick
I'm trying to figure out how to send a jodatime date into Postgres, for example to generate this SQL: SELECT animals.* FROM animals WHERE removed_from_service = '2001-11-11' Along the way, I've discovered that the SQL queries ClojureQL prints out can't be the ones it actually sends. Consider, f