8000 Inserting a timestamp value loses the fractional second · Issue #121 · go-goracle/goracle · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on May 5, 2020. It is now read-only.
This repository was archived by the owner on May 5, 2020. It is now read-only.
Inserting a timestamp value loses the fractional second #121
Closed
@ravikumars

Description

@ravikumars

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
image

The SRB_RECEIVE_DATE itself has the nanosecond part.

Any idea why?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0