Comments (7)
fixed in v2.7.20
from go-ora.
would you please give an example code to produce the error
from go-ora.
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.
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.
use: TIMESTAMP WITH LOCAL TIME ZONE is ok
from go-ora.
@vivi-ui no change, still wrong time even with TIMESTAMP WITH LOCAL TIME ZONE
and still correct with godror.
from go-ora.
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)
- Is it possible to run with a ssh dialer ? HOT 2
- ORA-12564: TNS connection refused when using BuildJDBC HOT 4
- Received code N error after using for a period of time HOT 2
- Can't query BLOB data (version 2.8.9) HOT 1
- Trigger panic when the number of rows in the table is >= 3 HOT 5
- Getting EOF with Ping HOT 5
- SSL connection without using wallet. HOT 4
- OCI IAM Token Authentication support in ADB HOT 1
- SELECT FOR UPDATE causing array out of bounds and panic HOT 1
- 2.8.10 is returning int column as string HOT 10
- ORA-00911: invalid character HOT 1
- ORA-00900: invalid SQL statement
- go_ora.AddSessionParam(db, k, v) put values to global driver hashmap HOT 2
- An EOF error is reported during ping HOT 2
- Panic in v2 `network.Session.GetInt64`: slice out of bounds HOT 3
- 2.8.8 drop JSON support? ORA-40569: Unimplemented JSON feature. HOT 5
- Insert with returning value using prepared statement hanging HOT 2
- unregister custom type: ANYDATA. call RegisterType first HOT 3
- long type get a error(ORA-03146:invalid buffer length for TTC field) HOT 5
- All data types are cast to string when query results are parsed HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-ora.