Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to insert null in database #3

Open
sjcarroll6 opened this issue Mar 20, 2010 · 5 comments
Open

How to insert null in database #3

sjcarroll6 opened this issue Mar 20, 2010 · 5 comments

Comments

@sjcarroll6
Copy link

I'm trying to insert a null into a database. I tried to insert a scala null into the insert statement and got a java null error. When I tried to insert NULL then scala didn't recognize the value. Thanks for any help on this.

queryEvaluator.execute("INSERT INTO CSEUser VALUES (?, ?, ?, ?, ?, ?, ?)", 220, "Happy1",3121266.39,"BigBoote", "Fred",null,6385068.77)

@eaceaser
Copy link
Collaborator

will fix this

@jboyens
Copy link

jboyens commented Apr 24, 2010

Any idea on how to work past this?

It's kind of a sad roadblock for me.

@eaceaser
Copy link
Collaborator

http://github.com/nkallen/querulous/commit/d2d117a2afc0714a83e6b88a1770a5836a51bfe3

Sorry about the long turnaround, I've been pretty busy with the FlockDB opensourcing stuff.

This should give you something to work with :) unfortunately I can't put a new version of querulous on the maven repo right now, so you'll have to build a jar yourself.

Please let me know if this is an acceptable solution. This was the best way of doing nulls that I could come up with in a relatively short notice.

@eaceaser
Copy link
Collaborator

p.s. some of us hang out in #twinfra on freenode irc if you have any problems and want to see if you can get a more immediate response

@jboyens
Copy link

jboyens commented Apr 24, 2010

Haha! This was the exact solution I had come up with, I just went to sleep instead of implementing it.

Thanks so much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants