I don't understand how to use it, can you post an example?
I have tried everything and have gotten it to work under circumstances
I'm not sure of. However it doesn't work now.
(ns progs.netflix.parsing
(:require (progs.netflix [pg :as pg]))
(:import (java.sql Date)))
(load-file "C:/cloj
The sample code for the book now includes a clojure.contrib.sql
example with date handling that may be helpful [1]. I tested with
HSQLDB, please let me know if it doesn't work with postgresql.
Cheers,
Stuart
[1]
http://github.com/stuarthalloway/programming-clojure/tree/master/examples/snipp
(defn inse []
(sql/with-connection db
(sql/transaction
(insert-rows :r [[1 2 "date '2008-12-03'" 3]])))
nil)
I have tried all kinds of variations. it works perfectly with another
table, like (int,int,int,int) and passing [1,2,3,4]
so it is the type of column 3 that is the problem.
"