You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 5, 2020. It is now read-only.
I am inserting a timestamp value into an oracle database with Column as TIMESTAMP(6).
e.g. SRB_RECEIVE_DATE := time.Now(); stmt, err := db.Prepare("INSERT INTO {table}(srb_receive_date) values(:1)"); stm.Exec(SRB_RECEIVE_DATE)
The record is inserted but the fractional part is all zeroes
The SRB_RECEIVE_DATE itself has the nanosecond part.
Any idea why?
The text was updated successfully, but these errors were encountered:
Thanks for the update. I am using the timestamp formatted to string and passing on to be inserted.
e.g. SRB_RECEIVE_DATE = time.Now().Format("2-Jan-06 3:04:05.000000 PM")
I am inserting a timestamp value into an oracle database with Column as TIMESTAMP(6).
e.g.
SRB_RECEIVE_DATE := time.Now(); stmt, err := db.Prepare("INSERT INTO {table}(srb_receive_date) values(:1)"); stm.Exec(SRB_RECEIVE_DATE)
The record is inserted but the fractional part is all zeroes

The SRB_RECEIVE_DATE itself has the nanosecond part.
Any idea why?
The text was updated successfully, but these errors were encountered: