Re: [Dbix-class] Oracle xmltype

2009-05-04 Thread John Napiorkowski
--- On Mon, 5/4/09, Morgon Hed wrote: > From: Morgon Hed > Subject: Re: [Dbix-class] Oracle xmltype > To: "DBIx::Class user and developer list" > Date: Monday, May 4, 2009, 10:02 AM > > > http://search.cpan.org/~ribasushi/DBIx-Class-0.08102/lib/DBIx/Class/Manual/Cookbook.pod#Using_database_

[Dbix-class] [PATCH] Enable Timestamp Conflation

2009-05-04 Thread Ronald E. Straight
Heya, folks. Here's a patch I discussed on IRC with mst. It allows for the proper consideration of timestamp data types. I saw some discussion recently about it, so hopefully it will pass the mustard {sic}. Tests included, and all existing tests pass. I'm not altogether happy with how I went a

[Dbix-class] [PATCH] Oracle LOB Support

2009-05-04 Thread Ronald E. Straight
Here it be. Uncut, and uncensored. A future shock that will shit you up. Or, in mundane terms, support for [BC]LOB datatypes in the Oracle driver. Tests included. Index: t/73oracle.t === --- t/73oracle.t(revision 6111) +

Re: [Dbix-class] DateTime Inflations for Timestamps

2009-05-04 Thread Alexander Hartmaier
Am Montag, den 04.05.2009, 15:44 +0200 schrieb Ryan Cone: > On May 4, 2009, at 5:15 AM, Alexander Hartmaier wrote: > > Am Freitag, den 01.05.2009, 00:48 +0200 schrieb Matt S Trout: > >> On Thu, Apr 30, 2009 at 03:53:52PM -0400, Ryan Cone wrote: > >>> > >>> I am using DBIC with Oracle and I am tryin

Re: [Dbix-class] dirty-flag on inflated columns

2009-05-04 Thread Morgon Hed
> Yes there is: Not in my version it seems. I have 0.08013 and in this version there does not seem to be a "make_column_dirty" method in DBIx::Class::Row (I just inspected the code). --- On Mon, 5/4/09, Moritz Onken wrote: > From: Moritz Onken > Subject: Re: [Dbix-class] dirty-flag on inf

Re: [Dbix-class] dirty-flag on inflated columns

2009-05-04 Thread Morgon Hed
> Yes there is Ok, I evidently I am too stupid. I tried to store the second parameter that gets passed to the inflate-sub in the object. This is a instance of my business-class (i.e. the one that derives from DBIx::Class). Naively I had expected this also to be an instance of DBIx::Class::Ro

Re: [Dbix-class] dirty-flag on inflated columns

2009-05-04 Thread Morgon Hed
Thanks! One thing though: I want the deflated object to mark the column as dirty, so to use "make_column_dirty" I need to keep a ref to the row in the inflated object. So now the row would have ref to the object and the object back to the row ... so I have to be careful about not leaking memo

Re: [Dbix-class] dirty-flag on inflated columns

2009-05-04 Thread Moritz Onken
Am 04.05.2009 um 17:18 schrieb Morgon Hed: Hi! I have a XML-column that I inflate/deflate to an object. What works is to create a new instance of such an object and pass that to the column-accessor, then when updating the object is deflated and stored in the database. The problem now i

[Dbix-class] dirty-flag on inflated columns

2009-05-04 Thread Morgon Hed
Hi! I have a XML-column that I inflate/deflate to an object. What works is to create a new instance of such an object and pass that to the column-accessor, then when updating the object is deflated and stored in the database. The problem now is that I want to call a method on the inflated obj

Re: [Dbix-class] DateTime Inflations for Timestamps

2009-05-04 Thread Ryan Cone
On May 4, 2009, at 5:15 AM, Alexander Hartmaier wrote: Am Freitag, den 01.05.2009, 00:48 +0200 schrieb Matt S Trout: On Thu, Apr 30, 2009 at 03:53:52PM -0400, Ryan Cone wrote: I am using DBIC with Oracle and I am trying to distinguish between columns that are Date and Date Time accurate. In t

Re: [Dbix-class] Oracle xmltype

2009-05-04 Thread Morgon Hed
> http://search.cpan.org/~ribasushi/DBIx-Class-0.08102/lib/DBIx/Class/Manual/Cookbook.pod#Using_database_functions_or_stored_procedures Thanks for the link. My fundamental problem is that I more and more come to the conclusion that DBIx::Class is just not for me as I don't understand it. I sim

Re: [Dbix-class] DateTime Inflations for Timestamps

2009-05-04 Thread Alexander Hartmaier
Am Freitag, den 01.05.2009, 00:48 +0200 schrieb Matt S Trout: > On Thu, Apr 30, 2009 at 03:53:52PM -0400, Ryan Cone wrote: > > Can anyone provide some insight into why timestamps are treated as > > datetimes in DBIx::Class::InflateColumn::DateTime? > > > > Line 63:$type = 'datetime' if ($type =