> > Exception in thread "main" java.lang.NoClassDefFoundError: sample/java
[snip]
> Erm, you are not including .class in the java line are you?
>
> eg: java sample.class?
*cough*
You mean sample.java
Answer is the same though, just use:
java sample
Michael Stephen
n't think this is the best place to find a
solution.
If it isn't compiling then get a new (as in, not broken, as opposed to
recent, there is no code in sample which should not work in any version
of the jdbc driver) postgres jar file and try again.
Michael Stephenson [EMAIL PROT
> The current CVS sources look wrong to me. It has:
>
> if (result != null) && ((org.postgresql.ResultSet)result.reallyResultSet())
>
> Shouldn't this be:
>
> if (result != null && ((org.postgresql.ResultSet)result.reallyResultSet()))
>
> Not sure if the extra parens are needed for:
>
> if
In org.postgresql.jdbc2.ResultSet, both getDate() and getTime() fail on
columns of type 'timestamp', which is against the jdbc spec, patch below
fixes it.
Michael Stephenson [EMAIL PROTECTED]
Developer -Web Applications- Open World
Tel: +44 1225 444 950 Fax
placed in a query.
*/
final String encode(String dirtyString) {
StringBuffer cleanString = new StringBuffer("");
for (int i = 0; i < dirtyString.length(); i++) {
char c = dirtyString.charAt(i);
cleanString.append(c);
if (c == '\'') {
> Ok, I tried all the drivers currently available at http://jdbc.fastcrypt.com.
> They all seem to correct the problem with long (>8k) SQL statements, but
> they're all broken considering Portuguese characters like áéíóú (aeiou with
> accent)... they are replaced by question marks (?)... any ideas
> Then I changed the dbUrl string to:
>
> private static final String dbUrl =
> "jdbc:postgresql//wetwang.ontko.com/demo";
>
> Any thoughts about what I've done wrong here?
This might not be the only problem, but your URL is missing a colon,
should be:
jdbc:postgresql://wetwang.ontko.com/demo