[Dbix-class] Inflate column depending of other column

2012-10-29 Thread Rolf Schaufelberger
Hi, I would like to inflate a column value from json to perl-Hash , but only if another column has a certain value. Do I have acces to the whole fetched row from within inflate_colum ? Rolf Schaufelberger smime.p7s Description: S/MIME cryptographic signature

Re: [Dbix-class] Next problem with 0.8126 , many-to-many an +colums

2011-01-18 Thread Rolf Schaufelberger
Peter Rabbitson: Rolf Schaufelberger wrote: Hi Peter, thanks for your explanation. Spent the whole last evening with debugging, without finding out whats going wrong. The [{ mode = 'me.mode'}] works as wanted. Awesome. Have you noticed any other problems while testing with 0.08126_01

[Dbix-class] Probel after Update to 08126

2011-01-17 Thread Rolf Schaufelberger
/perl/lib/PW/Application.pm line 51. Any ideas ? Rolf Schaufelberger ___ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/ Searchable Archive

[Dbix-class] Update : Problem with Update

2011-01-17 Thread Rolf Schaufelberger
. Removing the sequence call and define it via column_info works. Yet I wonder, is it intended that the update breaks old code ? Meanwhile I've also seen, that I can remove my sequence definition at all since my DB support insert .. returning. Rolf Schaufelberger

[Dbix-class] Next problem with 0.8126 , many-to-many an +colums

2011-01-17 Thread Rolf Schaufelberger
I've found another issue where the update breaks old code: Given the following definitions: package PW::Iprinter::DB::Article; ... __PACKAGE__-has_many ( article_children = 'PW::Iprinter::DB::ArticleArticle', 'parent_id'); .. __PACKAGE__-many_to_many ( children = 'article_children', 'child'

Re: [Dbix-class] Next problem with 0.8126 , many-to-many an +colums

2011-01-17 Thread Rolf Schaufelberger
Same error Am 17.01.2011 um 14:57 schrieb Peter Rabbitson: Rolf Schaufelberger wrote: I've found another issue where the update breaks old code: Can you test the 0.08127 RC (0.08126_01)? There were fixes related to the way +columns is now handled

Re: [Dbix-class] Relationship question/database structure

2011-01-10 Thread Rolf Schaufelberger
of has_many. I never need a relation the other way , from allstatus to one of the status logging tables, there is no use case for that. Regards Rolf Schaufelberger ___ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class IRC

[Dbix-class] Strange beaviour with bind_params for function call (Update)

2010-10-04 Thread Rolf Schaufelberger
I've found why the function is called 28 time, since I user search({}, {…}) and I have 28 records in my database…. Yet,that means I have no way to call a function just once without specifying a search that returns just one result row. So , switching back to dbh-do… Rolf

Re: [Dbix-class] Detecting a belongs_to relationship.

2010-03-24 Thread Rolf Schaufelberger
Rolf Schaufelberger Geschäftsführer plusW GmbH Vorstadtstr. 61 -67 Tel. 07181 47 47 305 73614 Schorndorf Fax. 07181 47 45 344 www.plusw.de www.mypixler.com www.calendrino.de ___ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix

[Dbix-class] get Defaults after create

2008-01-28 Thread Rolf Schaufelberger
')-find($obj-id); while my $obj = $schema-resultset('XY')-create({...} , {fetch=1}); would be nicer. -- Rolf Schaufelberger ___ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class IRC: irc.perl.org#dbix-class SVN: http

Re: [Dbix-class] bug with find_or_new and update_or_insert, for postgres DB - work around

2008-01-07 Thread Rolf Schaufelberger
record. So, same conclusion as in your case, not useable with for edit/update forms. :-( (Database is postgres) Rolf Schaufelberger ___ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class IRC: irc.perl.org#dbix-class SVN: http

[Dbix-class] Get wrong id after insert in Pg

2007-10-29 Thread Rolf Schaufelberger
Hi, I have a table where a trigger creates another record in the same table on INSERT (Postgres 8.2) I've the same workflow working with Class::DBI and so I've checked it again there, but it works OK with Class:DBI Any ideas ? Rolf Schaufelberger

Re: [Dbix-class] Pg bytea does not work

2007-10-15 Thread Rolf Schaufelberger
On Montag 15 Oktober 2007, John Napiorkowski wrote: --- Rolf Schaufelberger [EMAIL PROTECTED] wrote: Hi, I have a table like this: id | integer | not null default nextval('orders.logos_id_seq'::regclass) name| character varying(100

Re: [Dbix-class] Pg bytea does not work

2007-10-15 Thread Rolf Schaufelberger
On Montag 15 Oktober 2007, John Napiorkowski wrote: --- Rolf Schaufelberger [EMAIL PROTECTED] wrote: On Montag 15 Oktober 2007, John Napiorkowski wrote: --- Rolf Schaufelberger [EMAIL PROTECTED] wrote: Hi, I have a table like this: id | integer

Re: [Dbix-class] Pg bytea does not work

2007-10-15 Thread Rolf Schaufelberger
can I force my app to _populate_dbh earlier without doing a placebo select ? -- Regards Rolf Schaufelberger ___ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast