<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
<table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
<tbody>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
<tbody>
<tr>
<td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
<h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
<!-- To have a header image/logo replace the name below with your img tag -->
<!-- Email clients will render the images when the message is read so any image -->
<!-- must be made available on a public server, so that all recipients can load the image. -->
<a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
</td>
</tr>
<tr>
<td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
enhance IntelliSense of hql-editor
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/nimo22">nimo stephan</a> in <i>JBoss Tools</i> - <a href="http://community.jboss.org/message/560161#560161">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>I have found out that the intellisense of hql-editor does not contain all sql-statements.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>For example: SQL Date and Time Functions (adapted from <a class="jive-link-external-small" href="http://www.ibm.com/developerworks/data/library/techarticle/0211yip/0211yip3.html">http://www.ibm.com/developerworks/data/library/techarticle/0211yip/0211yip3.html</a>)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><table border="0" cellpadding="5" cellspacing="1" class="ibm-data-table" style="width: 500px;"><tbody><tr valign="top"><td style="">DAYNAME</td><td style="">Returns a mixed case character string containing the name of the day (e.g., Friday) for the day portion of the argument.</td></tr><tr valign="top"><td style="">DAYOFWEEK</td><td style="">Returns the day of the week in the argument as an integer value in the range 1-7, where 1 represents Sunday.</td></tr><tr valign="top"><td style="">DAYOFWEEK_ISO</td><td style="">Returns the day of the week in the argument as an integer value in the range 1-7, where 1 represents Monday.</td></tr><tr valign="top"><td style="">DAYOFYEAR</td><td style="">Returns the day of the year in the argument as an integer value in the range 1-366.</td></tr><tr valign="top"><td style="">DAYS</td><td style="">Returns an integer representation of a date.</td></tr><tr valign="top"><td style="">JULIAN_DAY</td><td style="">Returns  an integer value representing the number of days from January 1, 4712  B.C. (the start of Julian date calendar) to the date value specified in  the argument.</td></tr><tr valign="top"><td style="">MIDNIGHT_SECONDS</td><td style="">Returns  an integer value in the range 0 to 86 400 representing the number of  seconds between midnight and the time value specified in the argument.</td></tr><tr valign="top"><td style="">MONTHNAME</td><td style="">Returns a mixed case character string containing the name of month (e.g., January) for the month portion of the argument.</td></tr><tr valign="top"><td style="">TIMESTAMP_ISO</td><td style="">Returns a timestamp value based on date, time or timestamp argument.</td></tr><tr valign="top"><td style="">TIMESTAMP_FORMAT</td><td style="">Returns a timestamp from a character string that has been interpreted using a character template.</td></tr><tr valign="top"><td style="">TIMESTAMPDIFF</td><td style="">Returns  an estimated number of intervals of the type defined by the first  argument, based on the difference between two timestamps.</td></tr><tr valign="top"><td style="">TO_CHAR</td><td style="">Returns  a character representation of a timestamp that has been formatted using  a character template. TO_CHAR is a synonym for VARCHAR_FORMAT.</td></tr><tr valign="top"><td style="">TO_DATE</td><td style="">Returns  a timestamp from a character string that has been inter-preted using a  character template. TO_DATE is a synonym for TIMESTAMP_FORMAT.</td></tr><tr valign="top"><td style="">WEEK</td><td style="">Returns the week of the year of the argument as an integer value in range 1-54. The week starts with Sunday.</td></tr><tr valign="top"><td style="">WEEK_ISO</td></tr></tbody></table><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I guess, these are sql-functions independent from the database-provider. So would be nice to adapt these into the intellisense from hql-editor.</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/560161#560161">going to Community</a></p>
<p style="margin: 0;">Start a new discussion in JBoss Tools at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>