1 10 11 package com.triactive.jdo.store; 12 13 import java.sql.ResultSet ; 14 import java.sql.Types ; 15 16 17 23 24 class PostgreSQLColumnInfo extends ColumnInfo 25 { 26 36 37 public PostgreSQLColumnInfo(ResultSet rs) 38 { 39 super(rs); 40 41 if (typeName.equalsIgnoreCase("text")) 42 dataType = Types.LONGVARCHAR; 43 else if (typeName.equalsIgnoreCase("bytea")) 44 dataType = Types.LONGVARBINARY; 45 46 56 if (columnSize > PostgreSQLTypeInfo.MAX_PRECISION) 57 columnSize = -1; 58 59 if (decimalDigits > PostgreSQLTypeInfo.MAX_PRECISION) 60 decimalDigits = -1; 61 } 62 } 63 | Popular Tags |