Re: clojure.contrib.sql connections

2009-02-08 Thread Jeffrey Straszheim
Great! On Sun, Feb 8, 2009 at 5:05 PM, Mark Volkmann wrote: > > On Sun, Feb 8, 2009 at 3:23 PM, Stephen C. Gilardi > wrote: > > > > On Feb 8, 2009, at 4:04 PM, Mark Volkmann wrote: > > > > The error I get is "org.postgresql.util.PSQLException: FATAL: no > > PostgreSQL user name specified in star

Re: clojure.contrib.sql connections

2009-02-08 Thread Mark Volkmann
On Sun, Feb 8, 2009 at 3:23 PM, Stephen C. Gilardi wrote: > > On Feb 8, 2009, at 4:04 PM, Mark Volkmann wrote: > > The error I get is "org.postgresql.util.PSQLException: FATAL: no > PostgreSQL user name specified in startup packet". I think the problem > is that the username and password values i

Re: clojure.contrib.sql connections

2009-02-08 Thread Jeffrey Straszheim
Please let us know if this works. On Sun, Feb 8, 2009 at 4:23 PM, Stephen C. Gilardi wrote: > > On Feb 8, 2009, at 4:04 PM, Mark Volkmann wrote: > > The error I get is "org.postgresql.util.PSQLException: FATAL: no > PostgreSQL user name specified in startup packet". I think the problem > is that

Re: clojure.contrib.sql connections

2009-02-08 Thread Stephen C. Gilardi
On Feb 8, 2009, at 4:04 PM, Mark Volkmann wrote: The error I get is "org.postgresql.util.PSQLException: FATAL: no PostgreSQL user name specified in startup packet". I think the problem is that the username and password values in db aren't used by with-connection unless a DataSource object is sp

Re: clojure.contrib.sql connections

2009-02-08 Thread Jeffrey Straszheim
Try :user instead of :username On Sun, Feb 8, 2009 at 4:04 PM, Mark Volkmann wrote: > > I'm trying to use the sql contrib library to connect to a Postgres > database. It's not clear to me how to specify a username and password. > Here's what I'm trying. > > (use 'clojure.contrib.sql) > > (let [db