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

pgsql/src/interfaces/jdbc/org/postgresql jdbc1 ...

From: "Marc G(dot) Fournier" <scrappy(at)hub(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql/src/interfaces/jdbc/org/postgresql jdbc1 ...
Date: 2001-09-06 18:26:38
Message-ID: 200109061826.f86IQch44600@hub.org (view raw or flat)
Thread:
Lists: pgsql-committers
CVSROOT:	/home/projects/pgsql/cvsroot
Module name:	pgsql
Changes by:	scrappy(at)hub(dot)org	01/09/06 14:26:37

Modified files:
	src/interfaces/jdbc/org/postgresql/jdbc1: ResultSetMetaData.java 
	src/interfaces/jdbc/org/postgresql/jdbc2: ResultSetMetaData.java 

Log message:
	On Mon, 3 Sep 2001 22:01:17 -0500, you wrote:
	>public boolean isWritable(int column) throws SQLException
	>{
	>        if (isReadOnly(column))
	>                return true;
	>        else
	>                return false;
	>}
	
	The author probably intended:
	
	public boolean isWritable(int column) throws SQLException
	{
	return !isReadOnly(column);
	}
	
	And if he would have coded it this way he wouldn't have made
	this mistake :-)
	
	>hence, isWritable() will always return false. this is something
	>of a problem :)
	
	Why exactly? In a way, true is just as incorrect as false, and
	perhaps it should throw "not implemented". But I guess that
	would be too non-backwardly-compatible.
	
	>let me know if i can provide further information.
	
	Will you submit a patch?
	
	Regards,
	Ren? Pijlman <rene(at)lab(dot)applinet(dot)nl>


pgsql-committers by date

Next:From: Marc G. FournierDate: 2001-09-06 20:11:07
Subject: pgsql/doc TODO
Previous:From: Marc G. FournierDate: 2001-09-06 16:59:46
Subject: pgsql/doc TODO

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