-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Question about org.hibernate.dialect.OracleDialect in 3.0.5
PostPosted: Thu Jun 16, 2005 11:03 am 
Newbie

Joined: Fri May 20, 2005 2:42 am
Posts: 14
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 + ')';
}


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.