Giter VIP home page Giter VIP logo

Comments (7)

sijms avatar sijms commented on August 27, 2024 1

fixed in v2.7.20

from go-ora.

sijms avatar sijms commented on August 27, 2024

would you please give an example code to produce the error

from go-ora.

zura101 avatar zura101 commented on August 27, 2024

I have used test case described in #422

go result

{                                                            
  "CurrentDate": "2023-10-09 17:09:00",                      
  "CurrentTimestamp": "2023-10-09 17:09:00 +04:00",          
  "Sysdate": "2023-10-09 17:09:00",                          
  "Systimestamp": "2023-10-09 17:09:00 +04:00",              
  "TimeCurrentDate": "2023-10-09T17:09:00+04:00",            
  "TimeCurrentTimestamp": "2023-10-09T13:09:00.322788+04:00",
  "TimeSysdate": "2023-10-09T17:09:00+04:00",                
  "TimeSystimestamp": "2023-10-09T13:09:00.322787+04:00"     
}                                                            
         Sysdate: Mon Oct  9 17:09:00 +04:00 2023
    Systimestamp: Mon Oct  9 13:09:00 +04:00 2023
       Real Time: Mon Oct  9 17:08:59 +04 2023   

jetbrains datagrip result

CURRENT_DATE,2023-10-09 13:09:22
CURRENT_TIMESTAMP,2023-10-09 13:09:22 UTC
SYSDATE,2023-10-09 17:09:22
SYSTIMESTAMP,2023-10-09 17:09:22 +04:00
T_CURRENT_DATE,2023-10-09 13:09:22
T_CURRENT_TIMESTAMP,2023-10-09 13:09:22.911876 +00:00
T_SYSDATE,2023-10-09 17:09:22
T_SYSTIMESTAMP,2023-10-09 17:09:22.911873 +04:00

issue is partially similar.

unlike #422, TimeSysdate is showing correct time and zone, but TimeSystimestamp is the right zone, but the wrong time.

I am using go 1.20 and go-ora v2.7.19

from go-ora.

m1k1o avatar m1k1o commented on August 27, 2024

I tried with Oracle 12 and the new flow actually works. But with Oracle 19 it returns the right zone, but the wrong time.

from go-ora.

vivi-ui avatar vivi-ui commented on August 27, 2024

use: TIMESTAMP WITH LOCAL TIME ZONE is ok

from go-ora.

m1k1o avatar m1k1o commented on August 27, 2024

@vivi-ui no change, still wrong time even with TIMESTAMP WITH LOCAL TIME ZONE and still correct with godror.

from go-ora.

sijms avatar sijms commented on August 27, 2024

sorry for late replay
I fix it in next release
you can test it
go.mod
require github.com/sijms/go-ora/v2 v2.7.20-0.20231110222249-d97857c0676a

from go-ora.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.