GithubHelp home page GithubHelp logo

activerecord-jdbcsqlanywhere-adapter's People

Contributors

ccouzens avatar griff avatar rob99 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

activerecord-jdbcsqlanywhere-adapter's Issues

exec stored proc returns row count, not result set

I've found that if a proc does something else before executing a SELECT, then the adapter reports a row count as opposed to a subsequent result set.

create procedure deleteme1
as 
    select * from sysobjects
go

create procedure deleteme2
as
    select * into #tmp from sysobjects
    select * from #tmp
go
#...
ActiveRecord::Base.establish_connection CONFIG
puts ActiveRecord::Base.connection.execute("exec deleteme1").inspect
#=> prints a result set
puts ActiveRecord::Base.connection.execute("exec deleteme2").inspect
#=> prints a row count

I'm pretty sure this works with other adapters. Will check....

problem with activerecord-jdbc-adapter-1.2.0

RuntimeError: Please install the sqlanywhere adapter: `gem install activerecord-sqlanywhere-adapter` (Unable to activate activerecord-jdbcsqlanywhere-adapter-1.0.0, because activerecord-jdbc-adapter-1.2.0 conflicts with activerecord-jdbc-adapter (~> 1.1.1))
establish_connection at c:/jruby-1.6.2/lib/ruby/gems/1.8/gems/activerecord-3.1.0/lib/active_record/connection_adapters/abstract/connection_specification.rb:71
          __file__ at copy_krm_input.rb:99
           measure at c:/jruby-1.6.2/lib/ruby/1.8/benchmark.rb:293
              item at c:/jruby-1.6.2/lib/ruby/1.8/benchmark.rb:380
          __file__ at copy_krm_input.rb:99
         benchmark at c:/jruby-1.6.2/lib/ruby/1.8/benchmark.rb:177
                bm at c:/jruby-1.6.2/lib/ruby/1.8/benchmark.rb:207
            (root) at copy_krm_input.rb:94

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.