Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4538648
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T14:50:23+00:00 2026-05-21T14:50:23+00:00

I am using Oracle 10g with a Grails 1.3.2 application. I am targeting a

  • 0

I am using Oracle 10g with a Grails 1.3.2 application. I am targeting a legacy schema with all Date columns types used where time is stored. I believe I need to set the oracle.jdbc.V8Compatible property to true somewhere in order to use Groovy’s Sql.rows instance method (which uses ResultSet.getObject under the hood) to get java.sql.Timestamp objects with time components preserved instead java.sql.Date objects with time component truncated (see this). Where is the right / best place to set / how do I set the oracle.jdbc.V8Compatible property in a Grails application?

we use DataSource.groovy for development, and a JBoss JNDI configuration for production.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T14:50:24+00:00Added an answer on May 21, 2026 at 2:50 pm

    I abandoned the Sql.rows / V8Compatibility approach and instead am just using a custom function:

    public static java.sql.Timestamp sqlScalarTimestamp(dataSource, query, params) {
        Sql sql;
        try {
            sql = new Sql(dataSource)
            def result = null
            sql.query(query, params) { rs ->
                if(rs.next())
                    result = rs.getTimestamp(1)
            }
            return result
        } finally {
            if(sql != null)
                sql.close()
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First of all I am using Oracle 10g Express So there are three columns
I am using Oracle 10g at the moment. I want to search through all
I am using Oracle 10g and I have the following stored procedure: CREATE OR
We're using Oracle 10g application server and deployed the Web service and trying to
Using Oracle 10g, I need to rename a bunch of FK constraints which all
We have an OLTP application using Oracle Database 10g Enterprise Edition, and plan to
We have multiple environments (development, test, Production, etc). Using Oracle 10g. All values are
I am using oracle 10g. I tried to merge two tables. At that time
I am now using Oracle 10g (10.0.2) I want to encrypt some columns in
I have written a C# application that connects to an Oracle 10g database. Using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.