Re: [jruby-dev] ActiveRecord JDBC Oracle string default question

2008-12-11 Thread Ola Bini
Clint Hill wrote: Yes - the create statement includes VARCHAR2(4000). As Ola points out (which I was afraid of) the adapter will default to the biggest size allowed. Interestingly only the Oracle implementation in activerecord-jdbc-adapter does this. Most others choose 255 as the default. T

[jruby-dev] [jira] Created: (JRUBY-3235) dbd-jdbc: Add helper functions to wrap already existing jdbc Connection and Statement objects

2008-12-11 Thread Chad Johnson (JIRA)
dbd-jdbc: Add helper functions to wrap already existing jdbc Connection and Statement objects - Key: JRUBY-3235 URL: http://jira.codehaus.org/browse/JRUBY-3235

[jruby-dev] [jira] Created: (JRUBY-3234) Difference in require behaviour with MRI with ".rb" suffix

2008-12-11 Thread Nick Sieger (JIRA)
Difference in require behaviour with MRI with ".rb" suffix -- Key: JRUBY-3234 URL: http://jira.codehaus.org/browse/JRUBY-3234 Project: JRuby Issue Type: Bug Environment: JRuby

Re: [jruby-dev] ActiveRecord JDBC Oracle string default question

2008-12-11 Thread Clint Hill
Yes - the create statement includes VARCHAR2(4000). As Ola points out (which I was afraid of) the adapter will default to the biggest size allowed. Interestingly only the Oracle implementation in activerecord-jdbc-adapter does this. Most others choose 255 as the default. Thanks for the in

Re: [jruby-dev] ActiveRecord JDBC Oracle string default question

2008-12-11 Thread Ola Bini
Nick Sieger wrote: I don't think activerecord-jdbc has anything to do with default sizes, they should be baked into AR's migrations. Is the SQL sent to the database actually specifying varchar2(4000)? Yes, the default sizes are in the adapters. The general default for strings in adapters is

[jruby-dev] [jira] Created: (JRUBY-3233) JRuby with Rails 2.2.2 unable to instantiate a java class

2008-12-11 Thread Karthik Krishnan (JIRA)
JRuby with Rails 2.2.2 unable to instantiate a java class - Key: JRUBY-3233 URL: http://jira.codehaus.org/browse/JRUBY-3233 Project: JRuby Issue Type: Bug Components: Core Cla

Re: [jruby-dev] ActiveRecord JDBC Oracle string default question

2008-12-11 Thread Nick Sieger
I don't think activerecord-jdbc has anything to do with default sizes, they should be baked into AR's migrations. Is the SQL sent to the database actually specifying varchar2(4000)? /Nick On Thu, Dec 11, 2008 at 8:20 AM, Clint Hill <[EMAIL PROTECTED]> wrote: > I'm not sure if this is the best pla

[jruby-dev] [jira] Created: (JRUBY-3232) Zlib::GzipReader.each_line yields compressed data

2008-12-11 Thread ahobson (JIRA)
Zlib::GzipReader.each_line yields compressed data - Key: JRUBY-3232 URL: http://jira.codehaus.org/browse/JRUBY-3232 Project: JRuby Issue Type: Bug Components: Core Classes/Modules

[jruby-dev] ActiveRecord JDBC Oracle string default question

2008-12-11 Thread Clint Hill
I'm not sure if this is the best place for this question (so redirect if not) but I was wondering about the String default from the activerecord-jdbc-adapter. When using Oracle the default for string seems odd. create_table :accounts do |t| t.string :name end This will create a colu