Hmm... not sure, but seems like that method is maybe defined by a call
to rb_define_method in do_mysql_ext.c, though I don't claim to really
understand what is going on there. So I'm left wondering how to figure
out why the resource's update method returns false.

Clues appreciated. FWIW, I'm trying to debug something that works fine
in DM 0.9.11 with Merb 1.0.11.

Mark.



MarkMT wrote:
> I'm trying to track down a problem I have with a resource in 0.10.1
> that is failing to be saved despite passing its validations.
>
> Updating the resource leads to the invocation of
> DataMapper::Repository#update, which is defined in dm-core/
> repository.rb. This method calls 'update' on a
> DataMapper::Adapters::MysqlAdapter object, which is subclassed in dm-
> core/adapters/mysql_adapter.rb from
> DataMapper::Adapters::DataObjectsAdapter.
>
> That class is defined in dm-core/adapters/data_objects_adapter.rb and
> and its 'update' method calls 'execute' which creates a
> DataObjects::Mysql::Command object and calls 'execute_non_query' on
> it.
>
> However, I'm having difficulty figuring out where that class and its
> 'execute_non_query method' is defined. grep only turns up
> DataObjects::Command#execute_non_query, but that isn't what is being
> called.
>
> Can someone point me in the right direction?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to datamapper@googlegroups.com
To unsubscribe from this group, send email to 
datamapper+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to