clojure.java.jdbc says data too long for 1 character of data

2012-11-10 Thread larry google groups
In MySql I have a table with a field called is_top_winner and this is defined as char(1). In Clojure I have this function: (defn downgrade-everyone [db] 2012-11-10 - Let's start by saying no one is a top expert. In a later step we will upgrade those users who are top winners.

Re: clojure.java.jdbc says data too long for 1 character of data

2012-11-10 Thread Max Penet
It's probably the use of single quotes, which results in a quoted symbol Clojure 'f' f' On Saturday, November 10, 2012 6:20:06 PM UTC+1, larry google groups wrote: In MySql I have a table with a field called is_top_winner and this is defined as char(1). In Clojure I have this function:

Re: clojure.java.jdbc says data too long for 1 character of data

2012-11-10 Thread Sean Corfield
On Sat, Nov 10, 2012 at 9:20 AM, larry google groups lawrencecloj...@gmail.com wrote: In MySql I have a table with a field called is_top_winner and this is defined as char(1). In Clojure I have this function: (defn downgrade-everyone [db] 2012-11-10 - Let's start by saying no one is a top

Re: clojure.java.jdbc says data too long for 1 character of data

2012-11-10 Thread larry google groups
'f' is a symbol, not a string or a character. Try: {:is_top_winner f} or {:is_top_winner \f} Wow. Thanks. I guess I'm used to Ruby/PHP/Javascript where single quote and double quote both produce strings. Thanks. On Saturday, November 10, 2012 12:46:32 PM UTC-5, Sean Corfield wrote: On