Okay - this is really strange - the behavior is inconsistent: Last night every table was acting the same now 3 tables I had seem to work and one does not with NO changes. Here is a standalone excerpt and some output just run from irb
require "rubygems"
require "dm-core"
$dm = DataMapper.setup(:default, "mysql://root:@photo.rwboyer.com/wordpress")
class TermTax
include DataMapper::Resource
storage_names[:default] = "rb_term_taxonomy"
property :term_id, Integer, :field => "term_id"
property :tax, String, :field => "taxonomy"
#belongs_to :term, :child_key => [ :term_id ]
end
>> require 'wp.rb'
=> true
>> t = TermTax.all
>> t.each { |x| puts x.term_id, x.tax}
1
category
1
category
1
category
1
category
1
category
1
category
1
category
1
category
1
category
1
category
1
category
1
category
1
On and on and on and on.
There is a unique index on term_id in the DB - it is a wordpress database.
I am sure it is something I am doing or my environment but this is extremely
strange and as I said every single table for both sqlite and mysql were doing
the same thing last night - now it seems hit or miss.
/Library/Ruby/Gems/1.8/gems/dm-core-0.10.2/lib/dm-core.rb
/Library/Ruby/Gems/1.8/gems/do_mysql-0.10.1/lib/do_mysql.rb
OS = Snow Leopard / compiled against latest mysql 64bit client libs
RB
On Apr 18, 2010, at 6:37 AM, Dirkjan Bussink wrote:
>
> On 18 Apr 2010, at 05:17, rwb wrote:
>
>> Am I just doing something stupid that I cannot see? Any ideas?
>
> Could you create a standalone script that shows this issue? I haven't heard
> of anything like this and I can't imagine a bug like this could still pass
> all the specs. What version are you using? What adapter are you using?
>
> --
> Regards,
>
> Dirkjan Bussink
>
> --
> You received this message because you are subscribed to the Google Groups
> "DataMapper" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/datamapper?hl=en.
>
smime.p7s
Description: S/MIME cryptographic signature
