Skip site navigation (1) Skip section navigation (2)

Re: [webmaster] Problem with 'report a bug form'

From: "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk>
To: <pgsql-www(at)postgresql(dot)org>
Cc: "David Brownlee" <abs(at)absd(dot)org>, <webmaster(at)postgresql(dot)org>
Subject: Re: [webmaster] Problem with 'report a bug form'
Date: 2004-05-25 07:29:25
Message-ID: 03AF4E498C591348A42FC93DEA9661B889FEA1@mail.vale-housing.co.uk (view raw or flat)
Thread:
Lists: pgsql-www
Can someone take a look at this problem reported by David please (the
bug form that is, not the JDBC issue)? I'm pretty swamped right now :-(

Regards, Dave.

> -----Original Message-----
> From: David Brownlee [mailto:abs(at)absd(dot)org] 
> Sent: 22 May 2004 18:15
> To: webmaster(at)postgresql(dot)org
> Subject: [webmaster] Problem with 'report a bug form'
> 
>  	Submit does not appear to work:
> 
>  	Contents were:
> 
> 
> In AbstractJdbc2ResultSet:parseQuery can end up leaving a ; 
> on the end of a tablename, which when later used in 
> isUpdateable() will choke.
> The following 'fixes' it:
> 
> --- org/postgresql/jdbc2/AbstractJdbc2ResultSet.java.orig     
>   2004-05-21 
> 12:54
> :29.000000000 +0100
> +++ org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
> @@ -1448,7 +1450,7 @@ public abstract class AbstractJdbc2Resul
>                          {
>                                  if 
> (name.toLowerCase().equals("from"))
>                                  {
> -                                       tableName = st.nextToken();
> +                                       tableName =
> st.nextToken().replaceAll(";
> ", "");
>                                          tableFound = true;
>                                  }
> 
> This was found while writing a small java tool to copy the 
> contents of one database to another, which can be provided to 
> demonstrate the problem on request. Would have attached it 
> here if there had been an option :)
> 
> -- 
>  			   David Brownlee -- abs(at)absd(dot)org
> 
> ---------------------------(end of 
> broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to 
> majordomo(at)postgresql(dot)org
> 

Responses

pgsql-www by date

Next:From: World Wide Web OwnerDate: 2004-05-25 10:11:31
Subject: New News Entry
Previous:From: Dave PageDate: 2004-05-25 07:20:13
Subject: Re: New News Entry

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group