[JDBC] Re: Trouble With JDBC

2001-02-16 Thread Michael Stephenson
> > 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

[JDBC] Re: Trouble With JDBC

2001-02-16 Thread Michael Stephenson
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

[JDBC] Re: AGAIN: still no answer ... peter, or anybody knowledgeable,please ....

2001-05-08 Thread Michael Stephenson
> 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

[JDBC] getDate() and getTime() fails with columns of type 'TimeStamp'

2001-05-30 Thread Michael Stephenson
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

[JDBC] Re: [INTERFACES] New code for JDBC driver

2001-07-11 Thread Michael Stephenson
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 == '\'') {

[JDBC] Re: ? (question mark) characters

2001-08-30 Thread Michael Stephenson
> 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

Re: [JDBC] no suitable driver

2001-09-11 Thread Michael Stephenson
> 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