| 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:34:32 chromatic |
[View]
That was my fault. I replaced 'proc' with 'procedure' in the text and accidentally changed the code snippets too. I'm updating the code in the article now.
-
code inconsistencies
2003-08-14 12:25:29 nferrier [View]
whoops! sorry about that.
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.


