griff / activerecord-jdbcsqlanywhere-adapter Goto Github PK
View Code? Open in Web Editor NEWSybase SQLAnywhere JDBC adapter for JRuby on Rails
License: MIT License
Sybase SQLAnywhere JDBC adapter for JRuby on Rails
License: MIT License
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....
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.