[RDBO] Feature Request - for_update

2007-07-10 Thread Jeffrey Horn
We're really in need of a feature that would implement $rdbo->load( for_update => 1 ) and translate that into code that does what MySQL does when you "SELECT FOR UPDATE". Any possibility that might make it into the next release??? Pretty please? I'll even hack code for it if you want me to,

Re: [RDBO] Code for Generating RDBO's for All Tables

2007-06-15 Thread Jeffrey Horn
] Code for Generating RDBO's for All Tables On Jun 15, 2007, at 6:40 PM, Jeffrey Horn wrote: > I'm wondering if there's any code out there that will generate > Rose::DB::Object's for all tables in a database. I have my own > makeshift version which will do it for a

[RDBO] Code for Generating RDBO's for All Tables

2007-06-15 Thread Jeffrey Horn
I'm wondering if there's any code out there that will generate Rose::DB::Object's for all tables in a database. I have my own makeshift version which will do it for a given table, and the loop to simply iterate through tables isn't bad. I'm wondering if there's something that will create all the

Re: [RDBO] Problem with a Speculative Load

2007-05-17 Thread Jeffrey Horn
Never mind. It was a bug in my override of the load() method within Bill::DB::Object::Acct (didn't shift from @_ before calling $self->SUPER::load(@_). My bad! Many apologies! -- Jeff Horn -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeff

[RDBO] Problem with a Speculative Load

2007-05-17 Thread Jeffrey Horn
I have a table that has a unique key on (encrypt_ver_num, e_acct_num, pay_type_id) and a primary key of (acct_id). The following code: #!/usr/bin/perl use Bill::DB::Object::Acct; use Data::Dumper; my $acct = Bill::DB::Object::Acct->new( pay_type_id => 1, e_acct_num => 'c8923a1e7de803ac73372d64

[RDBO] MySQL Nullable Integer Attributes Return 0 when they should return undef (Rose::DB 0.734 / RDBO 0.764)

2007-05-15 Thread Jeffrey Horn
In MySQL 5.0.40-enterprise-gpl-log I run the following: CREATE TABLE `foo` ( `foo_id` bigint(10) NOT NULL auto_increment, `nullable_int` bigint(10) default NULL, `nullable_varchar` varchar(10) default NULL, PRIMARY KEY (`foo_id`) ); insert into foo (foo_id) values (1); mysql> select *

[RDBO] Scratchpad Space in RDBOs???

2007-04-19 Thread Jeffrey Horn
I have a table with several encrypted attributes. I'd like to add methods to my RDBO for that table that can take cleartext for each of those fields and set the encrypted value or get the cleartext for a field from the current encrypted value. In order to speed this up (I actually need to connect

[RDBO] Possible to use load() to get a exclusive lock???

2007-04-10 Thread Jeffrey Horn
I'm trying to simulate named SEQUENCES (a la Oracle or Postgres) in MySQL (InnoDB). I have a table sequences with attributes name (varchar) and value (integer). Conceptually, I'd like to do this my $seq_name = 'foo'; my $db = $seq->db; $db->begin_work; $seq->load( name => $seq_name ); my $value

[RDBO] Quick Rose-y way to get value of Now() from the database

2006-12-29 Thread Jeffrey Horn
I need to get the value of Now() from the database server (as opposed to the server on which my perl script is running) and wanted to know if there is a quick and elegant way to get that value in a Rose-y way (as opposed to dropping down to DBI). Just want to make sure I haven't missed such a feat

[RDBO] (no subject)

2006-12-08 Thread Jeffrey Horn
I have a database table in which several columns are all functions of a single sixteen digit number. Some of them are subsets of digits, others are encryptions of the number, etc. Is there a way in RDBO to override things so that I can get all the individual values of the columns, but can prevent