Hibernate version: 3.0.5
Hello,
is it intended that there are no break; statementes for the cases
Types.TIMESTAMP and Types.TIME, or is this a bug ???
The literal will always be "0" for TIMESTAMP and TIME
if there are no breaks !!
just wondering,
Andreas
public String getSelectClauseNullString(int sqlType) {
String literal;
switch(sqlType) {
case Types.VARCHAR:
literal = "'x'";
break;
case Types.CHAR:
literal = "'x'";
break;
case Types.DATE:
literal = "'2000-1-1'";
break;
case Types.TIMESTAMP:
literal = "'2000-1-1 00:00:00'";
case Types.TIME:
literal = "'00:00:00'";
default:
literal = "0";
}
return "nullif(" + literal + ',' + literal + ')';
}
|