Grokbase
x

DBIx::Class

 Topics | People | Info | Saved by | Page 1 of 58: 1 2 3 > >>

[Dbix-class] executing pl/sql block in dbic

By Marc Lambrichs | Mélange IT at Aug 3, 2007, 6:17 pm UTC

How should I handle executing a pl/sql-block in dbic? Actually I =20 think there should be 2 answers to this question: 1. If you just want to execute an arbitrary block of pl/sql, you =20 should be able to call it from an DBIx::Class::Schema instance. 2. If you wanted to call a stored procedure,... More...

[Dbix-class] Updating foreign key does not reload related object

By brett gardner at Aug 3, 2007, 3:42 pm UTC

I have a row object which has a field "venue_id" which is a foreign key used in a belongs_to relationship "venue". When I do the following. $old_venue = $event->venue; $event->venue_id($new_id); $event->update; $new_venue = $event->venue; "$new_venue" is not the venue with primary key "$new_id", it... More...

[Dbix-class] Transaction depth problem

By Dave Cardwell at Aug 3, 2007, 2:40 pm UTC

Hello there. When I run the attached script the call to txn_do() seems to create a transaction depth of two, so the insert is never actually committed. I see the insert in the MySQL log and the auto increment value of the primary key is increased, but the row of data is never actually inserted. I... More...

paperclip

[Dbix-class] Character set help

By Michael Higgins at Aug 1, 2007, 8:37 pm UTC

Folks -- Problem is going from microsoft SQL server via Freetds/unixODBC. FEX, TSQL shell shows correct data encoding in query results. But with DBIx::Class, a '?' is coming across, killing the app. Where do I try to find the problem? First, I determined issue is not with Freetds. Must be in DBIC?... More...

[Dbix-class] an error about search_related

By chylli at Aug 1, 2007, 4:36 pm UTC

HI: I have three tables described as Catalyst::Plugin::Authorization: Roles, UserRole, Users: Roles.pm is: __PACKAGE__->add_columns( "id", "role", __PACKAGE__->set_primary_key("id"); __PACKAGE__->add_unique_constraint( "role_2", ["role"] ); __PACKAGE__->has_many( map_user_role =>... More...

[Dbix-class] RFC: Thoughts on a serialization format for Classes

By John Napiorkowski at Aug 1, 2007, 1:39 pm UTC

Hi, I am seriously considering writing a system to create DBIx Classes via a configuration file. Since the default for creating these classes are primarily package method calls I think this could be pretty easy. So we could replace: package myapp::Schema::foo __PACKAGE__->load_components( ... );... More...

[Dbix-class] [PATCH] Schema::Loader with reserved table name

By Tatsuhiko Miyagawa at Aug 1, 2007, 1:32 pm UTC

The following patch fixes some weird bugs when I used the table name 'show' with mysql. I'm not subscribed to the -devel mailing list. Forward this if needed. --- DBIx/Class/Schema/Loader/DBI.pm.old 2006-11-01 08:34:03.000000000 -0800 +++ DBIx/Class/Schema/Loader/DBI.pm 2007-07-31... More...

[Dbix-class] having attribute with count

By Les Fletcher at Aug 1, 2007, 10:01 am UTC

I am building up a result set and am see difference between the actual selection of the objects from the database and counting of those same objects. The query has a prefetch, groupby, having and a limit clause. What I am seeing is that when I request the objects from the database the query is... More...

[Dbix-class] SQLite and empty INSERT statements...

By Jess Robinson at Jul 31, 2007, 10:46 pm UTC

Note sure if this is a bug/feature of SQL::Abstract or DBIC, but recording here for posterity and solution ideas: If I want to create a row with all default values, I can call ->create({}).. for SQLite, this produces: DBIx::Class::Schema::Journal::txn_do(): DBI Exception: DBD::SQLite::db... More...

[Dbix-class] on_field_change DBIC hooks

By Pedro Melo at Jul 31, 2007, 8:42 pm UTC

Hi, I implementing a "on_field_change" hook. External classes can hook the DBIC model to observe (usually) status changes and start some business logic processes. The reason I choose this approach is that it creates a loosely coupled system, where I can add other components later without going back... More...

[Dbix-class] Reconnecting Behavior

By Adam Herzog at Jul 30, 2007, 9:55 pm UTC

I'm having trouble with reconnecting to the db, and I'm not sure if it's expected behavior or not. Essentially, I have a cat/dbic app and mysql database. For reasons beyond my control, the mysql db is periodically shutdown for brief periods of time. If no requests are made during the downtime, then... More...

paperclip

[Dbix-class] Issue with DBIx::Class::ResultSet::find_or_create():

By Mesdaq, Ali at Jul 30, 2007, 5:22 pm UTC

This came up in the Catalyst list today so I am posting here for discussion or bug reporting. The issue is that it seems the find_or_create() call can have a hiccup in high load situations where find_or_create is called more than once at the same time with the same value. So what happens is both... More...

[Dbix-class] Insert using a result set with 'where' produces weird result

By Ivan Fomichev at Jul 30, 2007, 09:40 am UTC

Hello, I've got a weird result when trying to insert a row using a result set with 'where'. Here's a sample code: 8<--------------------------ifomichev_test.sql----------------------------- DROP TABLE IF EXISTS `records`; CREATE TABLE `records` ( `record_id` int(10) unsigned NOT NULL... More...

Re: [Dbix-class] SQL::Translator 0.08 Unique/Index clash problem

By Jon Schutz at Jul 30, 2007, 08:58 am UTC

This original post was on the DBIx::Class list, copying now to SQLFairy- developers with patch... Time passes, and I find I'm looking at the same problem again. Having dug deeper, SQL::Translator::Producer::MySQL in 0.07 added an INDEX declaration for every FOREIGN_KEY constraint. In 0.08, that bit... More...

paperclip

[Dbix-class] abstract syntax (extract from a conversation)

By Matt S Trout at Jul 27, 2007, 05:03 am UTC

This is the most coherent message to show the lines along which we were thinking (hdp is confound on #dbix-class). Those of you who don't have context for this, poke the list archives. Those of you who do, please bear in mind when responding what anything involving the creation of assloads of... More...

[Dbix-class] Schwern's CDBICompat fixes merged to an 08 branch

By Matt S Trout at Jul 27, 2007, 05:00 am UTC

http://dev.catalyst.perl.org/repos/bast/DBIx-Class/0.08/branches/cdbicompat_integration/ if you want to check it out and have a play. Schwern and I will be poking at this as well, with a view to merging it back for an 08100 release at some point. More...

[Dbix-class] repo re-org

By Matt S Trout at Jul 27, 2007, 12:57 am UTC

DBIC is now based off http://dev.catalyst.perl.org/repost/bast/DBIx-Class 0.08/trunk is the old trunk, 0.09/trunk is the replacement for -current both have branches dirs. I'll sort out tags when we cut a release. More...

[Dbix-class] Prefetch not supported with accessor 'multi'

By Ramprabhu Kaliaperumal at Jul 26, 2007, 8:21 pm UTC

Hi All I am getting this error Caught exception in GlobalDC::C::Host->list "DBIx::Class::ResultSet::all(): Prefetch not supported with accessor 'multi' at /globaldc/web/dev11/catalyst/lib/GlobalDC/C/Host.pm line 173" Here is my code my @hosts = $c->model('Local::Host')->search( { -and =>... More...

[Dbix-class] modifying join condition in search

By Pedro Melo at Jul 25, 2007, 2:19 pm UTC

Hi, I have a relation defined like this: in Topics.pm: __PACKAGE__->has_many( watchers => 'PH::S::Watching', { 'foreign.topic_id' => 'self.id' }); In a search() I need to do a left join between Topics and Watching, but I need to add another statement to the join condition. If I use join =>... More...

[Dbix-class] ANNOUNCE - Language::MuldisD, Muldis::DB v0.3.0 released

By Darren Duncan at Jul 24, 2007, 11:51 pm UTC

All, Since last week, I went ahead and separated, into its own GIT repository and distribution series, the collection of pod-only files that comprise the Muldis D language specification; from now on, to see the development of the language spec itself, go to:... More...

spacer
 Topics | People | Info | Saved by | Page 1 of 58: 1 2 3 > >>
Home > Groups > lists.rawmode.org > DBIx::Class