| Article: |
Stored Procedures for Java Programmers | |
| Subject: | code inconsistencies | |
| Date: | 2003-08-14 11:50:02 | |
| From: | anonymous2 | |
| Good article, but please ensure that the code is consistent. Variable names used in the examples often don't correspond to their declarations. In one 5 line code snippet, you called the CallableStatement by 3 different variable names. Please check your work. | ||
Showing messages 1 through 2 of 2.
-
code inconsistencies
2003-08-14 12:25:29 nferrier [View]



For those interested the code of the first snippet should read:
CallableStatement proc=connection.prepareCall(...);
proc.setString(1, poetName);
proc.setInt(2,age);
proc.execute();
Other examples have a confusion between proc and procedure.
One again, apologies.