I was able to solve the problem.

I noticed that with-connection doesn't take a 
string<http://clojure.github.com/java.jdbc/#clojure.java.jdbc/with-connection>. 
Following the Clojure Programming/Examples/JDBC 
Examples<http://en.wikibooks.org/wiki/Clojure_Programming/Examples/JDBC_Examples#PostgreSQL>,
 
I replaced:

(sql/with-connection (System/getenv "DATABASE_URL")

  (sql/create-table :testing [:data :text]))


with:

(sql/with-connection {:classname "org.postgresql.Driver"

                      :subprotocol "postgresql"

                      :subname "//localhost:5432/shouter"}

  (sql/create-table :testing [:data :text]))


and now it works.

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/heroku/-/b5QrL6taS6oJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.

Reply via email to