Skip to content

not able to insert timestamp objects #71

@schaary

Description

@schaary

Hi,

I use an 'Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production'. Ruby v2.0.0 - v2.1.4 and ruby-plsql v0.5.2.

I try to insert a timestamp in a table but nothing happens. Like this:

create table tmp_time_tbl (
  time_stamp timestamp;
);

and then in ruby

require 'ruby-plsql'

# connect to oracle db

ts = { time_stamp: Time.now }

tmp_time_tbl.insert ts

It returns nil and nothing is inserted. When I insert a value by sqlplus, then I can fetch it:

pry [v2.1.4]  >> ap plsql.tmp_time_tbl.first 
{
    :time_stamp => 2014-11-09 08:36:40 +0100
}
=> nil

ap is awesome_print.

The problem still exists, when I try it by using pl/sql functions. If you are interested, I can post a example too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions