Displaying 8 results from an estimated 8 matches for "sybase_adapter".
2009 Sep 08
2
Rails + Sybase ASE : group effort, please
...from c:/ruby/lib/ruby/site_ruby/1.8/i386-msvcrt/sybct.rb:27:in
`open''
from c:/ruby/lib/ruby/site_ruby/1.8/i386-msvcrt/sybsql.rb:269:in
`initialize''
from
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-sybase-adapter-1.0.0.9250/lib/active_record/connection_adapters/sybase_adapter.rb:46:in
`new''
from
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-sybase-adapter-1.0.0.9250/lib/active_record/connection_adapters/sybase_adapter.rb:46:in
`sybase_connection''
from
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/active_record/connection_adapters/...
2007 Apr 03
0
[Sybase Adaptor] find_by_xxx does not work correctly.
...only include number
>> User.find_by_code("1")
ActiveRecord::StatementInvalid: RuntimeError: SQL Command Failed for
User Load: SELECT * FROM users WHERE (users.[code] = 1)
This SQL should be quote like this
SELECT * FROM users WHERE (users.[code] = "1")
* probelm source
sybase_adapter.rb
279 def quote(value, column = nil)
280 return value.quoted_id if value.respond_to?
(:quoted_id)
281
282 case value
283 when String
284 if column && column.type == :binary &&
column.class.respond_to?(:string_to_b...
2007 Aug 01
0
super() inside quote() of database adapters
4 days into RoR and I am fixing db adapter bugs, didn''t expect
that ;-) In working to fix a bug in the quote() method of the
sybase_adapter.rb which causes it to incorrectly drop quotes of a
value that goes into a string column if the value is a number, I have
noticed that super() has the quoting of the value correct.
I am very new to RoR and Ruby, it seems to me that
ActiveRecord::ConnectionAdapters::Quoting''s quote()
works,...
2009 Aug 28
0
Error connecting to Sybase (odd)
...from c:/ruby/lib/ruby/site_ruby/1.8/i386-msvcrt/sybct.rb:27:in
`open''
from c:/ruby/lib/ruby/site_ruby/1.8/i386-msvcrt/sybsql.rb:269:in
`initialize''
from
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-sybase-adapter-1.0.0.9250/lib/active_record/connection_adapters/sybase_adapter.rb:46:in
`new''
from
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-sybase-adapter-1.0.0.9250/lib/active_record/connection_adapters/sybase_adapter.rb:46:in
`sybase_connection''
from
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/connection_adapters/...
2007 Jul 30
3
validates_uniqueness_of doesn't work if value tested is numeric and column is string
...uote the value if it''s numeric even though it''s comparing against a
varchar column. It does something like this: (select * from products
where title = 123) This of course needs 123 to be quoted in order for
it to work.
I thought this would be an easy fix in the quote() method of
sybase_adapter.rb but it appears to be doing the right thing by
checking the column type.
I''d like to figure out if it''s specific to the sybase adapter so if
anyone can validates_uniqueness_of a string column and then pass an
integer I''d appreciate it.
Also that''s the proper w...
2009 Oct 14
18
sybase in rails2?
...apter to work in
Rails2?
I can''t seem to, and can''t figure out why. I am on RedHat linux.
I have the sybase client libraries installed, I have the adapter
installed. After installing the patch at
https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/2455-update-for-sybase_adapter#ticket-2455-4
to get a slightly better error message, my error message is now, well,
not slightly better at all.
RuntimeError: Please install the sybase adapter: gem install
activerecord-sybase-adapter (no such file to load --
active_record/connection_adapters/sybase_adapter)
from
/usr/lib/rub...
2010 Apr 28
1
Trying to get Rails working with Sybase ASE
...8/gems/rake-0.8.7/lib/rake.rb:1998:in `run''
c:/prg/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
c:/prg/ruby/bin/rake:19:in `load''
c:/prg/ruby/bin/rake:19
so... looks like something''s missing here. In mysql_adapter.rb there is a
select_row function, but not in the sybase_adapter.rb.
I tried downgrading Rails to 2.1.0 because I read somewhere that the
activerecord-sybase-adapter perhaps was not working for the latest Rails
releases, but got only a slightly different error message:
rake aborted!
select_rows is an abstract method
c:/prg/ruby/lib/ruby/gems/1.8/gems/activereco...
2006 Feb 01
5
Sybase ctlib Adapter
Hi,
I''ve been trying to update Will Sobel''s sybase-ctlib adapter to pass
unit tests on Rails 1.0. It''s been a slow, sloggy process for me so
far, as I''ve been learning Ruby, Rails, and Sybase administration all
in one go. (c: It''s been a saving grace to have a good starting
point (thanks Will!).
http://dev.rubyonrails.org/ticket/2030