Created
June 2, 2009 16:47
-
-
Save brianm/122352 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void testUsefulArgumentOutputForDebug() throws Exception { | |
try { | |
h.createStatement("insert into something (id, name) values (:id, :name)") | |
.bind("name", "brian") | |
.bind(7, 8) | |
.bindFromMap(new HandyMapThing().add("one", "two")) | |
.bindFromProperties(new Object()) | |
.execute(); | |
} | |
catch (StatementException e) { | |
System.out.println(e.getMessage()); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Unable to execute, no named parameter matches "id" and no positional param for place 0 | |
(which is 1 in the JDBC 'start at 1' scheme) has been set. [statement:"insert into | |
something (id, name) values (:id, :name)", located:"insert into something (id, name) | |
values (:id, :name)", rewritten:"insert into something (id, name) values (?, ?)", | |
arguments:{ positional:{7:8}, named:{name:'brian'}, lazy:[{one=two},{lazy bean | |
proprty arguments "java.lang.Object@65c24701"]}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment