Giter Club home page Giter Club logo

Comments (5)

jgebal avatar jgebal commented on June 30, 2024

I did some debugging and it seems that JDBC driver is returning value 0 when called

    def get_bind_variable(stmt, i, type)
      case type.to_s.to_sym
      when :Fixnum, :Bignum, :Integer
        stmt.getInt(i)
...

Its line 308 in jdbc_connection.rb
Maybe we shouldn't be using getInt for Oracle PLS_ITEGER type and the suptypes / synonyms of it.
I have no JDBC to investigate it, except for googling.

from ruby-plsql.

javornikolov avatar javornikolov commented on June 30, 2024

Good spot! I think you're right. We should perhaps try with getObject - at least to check for null.

from ruby-plsql.

javornikolov avatar javornikolov commented on June 30, 2024

Looking at the code - I suspect that maybe there is a similar issue with :Float.

I just checked: seems binary_{float|double} are working fine.

from ruby-plsql.

javornikolov avatar javornikolov commented on June 30, 2024

@jgebal , may you take a look at #86 - I think it solves the problem.

from ruby-plsql.

jgebal avatar jgebal commented on June 30, 2024

Will look at it next week or Sunday evening. Im on holidays till then.

*sent from mobile
2 cze 2015 23:16 "Yavor Nikolov" [email protected] napisaล‚(a):

@jgebal https://github.com/jgebal , may you take a look at #86
#86 - I think it solves the
problem.

โ€”
Reply to this email directly or view it on GitHub
#84 (comment).

from ruby-plsql.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.