Fix to prevent SQL injection attacks for code calling setObject(int,Object,int)
authorBarry Lind <barry@xythos.com>
Tue, 22 Jul 2003 05:17:09 +0000 (05:17 +0000)
committerBarry Lind <barry@xythos.com>
Tue, 22 Jul 2003 05:17:09 +0000 (05:17 +0000)
commit8e26bcc4eb03b32b6e68fce17bfd8670710c330a
treec1451c64d5832be2a9a74b892bddd6ff3542e12d
parentb341dc7cc42a5d0c46a9cea3eee652b83e6ddecf
Fix to prevent SQL injection attacks for code calling setObject(int,Object,int)
where Object is a user supplied String and the type is a numeric type
(i.e. INTEGER,LONG,etc).
Also applied a patch from Kim Ho that fixes compile problems under jdk1.2

 Modified Files:
  jdbc/org/postgresql/Driver.java.in
  jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
src/interfaces/jdbc/org/postgresql/Driver.java.in
src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java