else if ((column.getTypeCode() == Types.TIMESTAMP) && (column.getDefaultValue() != null)) {   PatternMatcher matcher   = new Perl5Matcher(); Timestamp      timestamp = null;  if (matcher.matches(column.getDefaultValue(), _isoDatePattern)) { timestamp = new Timestamp(Date.valueOf(matcher.getMatch().group(1)).getTime()); } else if (matcher.matches(column.getDefaultValue(), _isoTimePattern)) { timestamp = new Timestamp(Time.valueOf(matcher.getMatch().group(1)).getTime()); } if (timestamp != null) { column.setDefaultValue(timestamp.toString()); } }
else if (column.getDefaultValue() != null) { if (column.getTypeCode() == Types.TIMESTAMP) {   PatternMatcher matcher   = new Perl5Matcher(); Timestamp      timestamp = null;  if (matcher.matches(column.getDefaultValue(), _isoDatePattern)) { timestamp = new Timestamp(Date.valueOf(matcher.getMatch().group(1)).getTime()); } else if (matcher.matches(column.getDefaultValue(), _isoTimePattern)) { timestamp = new Timestamp(Time.valueOf(matcher.getMatch().group(1)).getTime()); } if (timestamp != null) { column.setDefaultValue(timestamp.toString()); } } else if (TypeMap.isTextType(column.getTypeCode())) { column.setDefaultValue(unescape(column.getDefaultValue(), "'", "''")); } }
    protected Column readColumn(DatabaseMetaDataWrapper metaData, Map values) throws SQLException    {		Column column = super.readColumn(metaData, values);		if ((column.getTypeCode() == Types.DECIMAL) && (column.getSizeAsInt() == 19) && (column.getScale() == 0))		{			// Back-mapping to BIGINT			column.setTypeCode(Types.BIGINT);		}		else if ((column.getTypeCode() == Types.TIMESTAMP) && (column.getDefaultValue() != null))		{			// Sybase maintains the default values for DATE/TIME jdbc types, so we have to			// migrate the default value to TIMESTAMP			PatternMatcher matcher   = new Perl5Matcher();			Timestamp      timestamp = null;			if (matcher.matches(column.getDefaultValue(), _isoDatePattern))			{				timestamp = new Timestamp(Date.valueOf(matcher.getMatch().group(1)).getTime());			}			else if (matcher.matches(column.getDefaultValue(), _isoTimePattern))			{				timestamp = new Timestamp(Time.valueOf(matcher.getMatch().group(1)).getTime());			}			if (timestamp != null)			{				column.setDefaultValue(timestamp.toString());			}		}		return column;	}