Re: [Rails-core] Unit Tests for active record fail with mysql

2006-07-23 Thread Tom Ward
On 23/07/06, Daniel N <[EMAIL PROTECTED]> wrote: Tom, Thanx for the effort to get this going. Unfortunately the diff file attached has nothing it it. Cheers Well spotted ;) Try this one. Tom fix_mysql_schema_to_work_in_strict_mode.diff Description: Binary data ___

Re: [Rails-core] Unit Tests for active record fail with mysql

2006-07-22 Thread Daniel N
On 7/23/06, Tom Ward <[EMAIL PROTECTED]> wrote: Tom Ward wrote:> I'll look into changing the> mysql test schema to see if it can be fixed to work in strict mode,> unless anyone vehemently objects.As promised, here's a patch against the schema allowing the activerecord test suite to be run in strict

Re: [Rails-core] Unit Tests for active record fail with mysql

2006-07-22 Thread Tom Ward
Tom Ward wrote: I'll look into changing the mysql test schema to see if it can be fixed to work in strict mode, unless anyone vehemently objects. As promised, here's a patch against the schema allowing the activerecord test suite to be run in strict mode on mysql 5.0. I'll submit this as soon

Re: [Rails-core] Unit Tests for active record fail with mysql

2006-07-22 Thread Tom Ward
On 22/07/06, Daniel N <[EMAIL PROTECTED]> wrote: On 7/22/06, Chris Mear <[EMAIL PROTECTED]> wrote: > On 22 Jul 2006, at 7:58 am, Daniel N wrote: > > > ActiveRecord::StatementInvalid: Mysql::Error: #HY000Field 'type' > > doesn't have a default value: INSERT INTO projects (`name`, `id`) > > VALUES

Re: [Rails-core] Unit Tests for active record fail with mysql

2006-07-22 Thread Daniel N
On 7/22/06, Chris Mear <[EMAIL PROTECTED]> wrote: On 22 Jul 2006, at 7:58 am, Daniel N wrote:> ActiveRecord::StatementInvalid: Mysql::Error: #HY000Field 'type'> doesn't have a default value: INSERT INTO projects (`name`, `id`)> VALUES ('Active Record', 1) #with different insert statements Are you r

Re: [Rails-core] Unit Tests for active record fail with mysql

2006-07-22 Thread Chris Mear
On 22 Jul 2006, at 7:58 am, Daniel N wrote: ActiveRecord::StatementInvalid: Mysql::Error: #HY000Field 'type' doesn't have a default value: INSERT INTO projects (`name`, `id`) VALUES ('Active Record', 1) #with different insert statements Are you running MySQL 5? Someone else reported a simi

[Rails-core] Unit Tests for active record fail with mysql

2006-07-21 Thread Daniel N
Hi,I just downloaded rails trunk to roll up my sleeves for a patch.  After reading the docs on dev.rubyonrails.org for patch writing I downloaded the rails trunk and setup my database to include activerecord_unittest and activerecord_unittest2, set the connection file to connect with the correct us