Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Humorous error message

RE: Humorous error message

From: Clark, Tommy R <TOMMY.R.CLARK_at_saic.com>
Date: Thu, 18 Dec 2003 13:04:32 -0800
Message-ID: <F001.005DA558.20031218130432@fatcity.com>


Could the problem be a difference of type? "TIMESTAMP" vs. "TIMESTAMP WITH TIME ZONE" The SYSTIMESTAMP function has the return type of TIMESTAMP WITH TIME ZONE. The FROM_TZ function says that it converts a TIMESTAMP to a TIMESTAMP WITH TIME ZONE. Given that I don't use timestamps much, this is only a guess.

-----Original Message-----
Jonathan Gennick
Sent: Thursday, December 18, 2003 3:34 PM To: Multiple recipients of list ORACLE-L

Take a look at the results below. Look especially at the error message. I had to laugh when I read that. Hey, Oracle is telling me it got what it expected, so what's the problem, right? <grin>

Bonus points if you can tell me why the query failed.

SQL> SELECT FROM_TZ(SYSTIMESTAMP,'-5:00') FROM dual; SELECT FROM_TZ(SYSTIMESTAMP,'-5:00') FROM dual

               *
ERROR at line 1:
ORA-00932: inconsistent datatypes: expected TIMESTAMP got TIMESTAMP

Best regards,

Jonathan Gennick --- Brighten the corner where you are http://Gennick.com * 906.387.1698 * mailto:jonathan@gennick.com

Join the Oracle-article list and receive one article on Oracle technologies per month by email. To join, visit
http://four.pairlist.net/mailman/listinfo/oracle-article, or send email to Oracle-article-request_at_gennick.com and include the word "subscribe" in either the subject or body.

--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: Jonathan Gennick
  INET: jonathan_at_gennick.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: Clark, Tommy R
  INET: TOMMY.R.CLARK_at_saic.com
Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Thu Dec 18 2003 - 15:04:32 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US