Alzabo

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN


- Eliminate use of transactions where not needed and shorten their
  length in other places.  Also make sure failed commit triggers a
  rollback.

- Get rid of silly min/max language in favor of cardinality and
  dependencies.

BUG FIXES:

- Fixed a problem with syncing after the Unix time rollover to 10
  digits.

- Alzabo::ForeignKey->is_many_to_one always returned false.

- Alzabo::MethodMaker was interpreting foreign key cardinality
  incorrectly (backwards).  This meant it was treating one-to-many
  relationships as many-to-one.  Reported by Martin Ertl.

  NOTE: This fix will break code that depended on this behavior.  See
  the UPGRADE INSTRUCTIONS above.

t/03-runtime.t  view on Meta::CPAN

	"Sixth row smell should be worse" );

    if ( $rdbms eq 'mysql' )
    {
	my $emp;
	eval_ok( sub { $emp = $emp_t->insert( values => { name => UNIX_TIMESTAMP(),
							  dep_id => $dep_id } ) },
		 "Insert using SQL function UNIX_TIMESTAMP()" );

	like( $emp->select('name'), qr/\d+/,
	      "Name should be all digits (unix timestamp)" );

	eval_ok( sub { $emp->update( name => LOWER('FOO') ) },
		 "Do update using SQL function LOWER()" );

	is( $emp->select('name'), 'foo',
	    "Name should be 'foo'" );

	eval_ok( sub { $emp->update( name => REPEAT('Foo', 3) ) },
		 "Do update using SQL function REPEAT()" );



( run in 1.571 second using v1.01-cache-2.11-cpan-39bf76dae61 )