Oracle 10g JDBC Thin Drivers and Time

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default Re: Oracle 10g JDBC Thin Drivers and Time

    We have the same problem the newest version of Coldfusion with the newest
    oracle jdbc driver displays only the date, not the time. The same jdbc driver
    used in a little pure java program displays both, date and time.
    What have i done?
    In the java program i have create a OracleResultSet and have used the methodes
    getTimestamp() and getDATE() (don't confuse with getDate() from Java). Both
    object types will return date and time information. The DATE object from Oracle
    supports the methodes dateValue() for extracting the date, timeValue() for the
    time, timestampValue() for a complett timestamp and stringValue() which returns
    a string representation of the DATE object. The definition of the DATE object
    shows that it is a representation of the Oracle data type "date" with all
    needed conversions:
    "The DATE class provides conversions between the Oracle Date (ldx_t) data type
    and Java classes java.sql.Date, java.sql.Time, java.sql.Timestamp"
    I also used a Java ResultSet with the method getTimestamp() to display the
    values of Oracle date columns. It works fine! Using the methods getMetaData()
    and getColumnTypeName() has displayed "DATE" as type for the column.
    So i guess that ColdFusion gets the metadata "DATE" for the column and confuse
    it with the Java datatype "Date" which will results in the effect above: the
    time part will be ignored.

    sdittbrenner Guest

  2. Similar Questions and Discussions

    1. Microsoft JDBC Drivers
      I am thinking of using the Microsoft JDBC SQL Server 2005 drivers to connect CF MX7 data sources. Does anyone have a production application...
    2. Using Oracle JDBC drivers
      Hi SPSman, Can you post your sample code here with attach code option. so I think I could help you out. regards logu.
    3. CF 7 Standard + Oracle JDBC drivers + CLOB fields
      Hello all, I?m trying to update/select CLOB fields in an Oracle 8.1.7 database with CF 7 Standard Edition. I?m using the Oracle JDBC drivers...
    4. Mysql Driver . What's the best between macromediaDrivers or JDBC Drivers ?
      Hi everybody, I would like to know your point of view about The Drivers for Mysql in Coldfusion MX 6.1. At this moment I've macromedia MX6.1...
    5. Any JDBC drivers for informix anywhere (ifxjdbc.jar?)
      Hi, I have a JDBC driver file for Informix of unknown age, although the version is known to be Version 2.11.JC1 I looked absolutely...
  3. #2

    Default Re: Oracle 10g JDBC Thin Drivers and Time

    What clob performance issues are you talking about? Are these against the build-in Oracle drivers?

    Let's solve the first problem.

    Stephen Dupre
    Macaromedia QA
    sdupre Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139