Skip to content

Commit

Permalink
fixed code style
Browse files Browse the repository at this point in the history
  • Loading branch information
Картушин Дмитрий Николаевич committed Feb 4, 2025
1 parent e07ef78 commit b160716
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions v2/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ func (conn *Connection) getDBServerTimeZone() {
}

var current time.Time
err := conn.QueryRowContext(context.Background(), "SELECT systimestamp FROM dual", nil).Scan(&current)
err := conn.QueryRowContext(context.Background(), "SELECT SYSTIMESTAMP FROM DUAL", nil).Scan(&current)
if err != nil {
conn.dbServerTimeZone = time.UTC
}
Expand All @@ -560,7 +560,7 @@ func (conn *Connection) getDBServerTimeZone() {

func (conn *Connection) getDBTimeZone() error {
var result string
err := conn.QueryRowContext(context.Background(), "SELECT dbtimezone FROM dual", nil).Scan(&result)
err := conn.QueryRowContext(context.Background(), "SELECT DBTIMEZONE FROM DUAL", nil).Scan(&result)
// var current time.Time
// err := conn.QueryRowContext(context.Background(), "SELECT SYSTIMESTAMP FROM DUAL", nil).Scan(&current)
if err != nil {
Expand Down

0 comments on commit b160716

Please sign in to comment.