DB-Object
view release on metacpan or search on metacpan
lib/DB/Object/Fields/Unknown.pm view on Meta::CPAN
table => 'some_table',
error => 'Table some_table has no such field \"some_field\".',
) || die( DB::Object::Fields::Unknown->error, "\n" );
=head1 VERSION
v0.1.0
=head1 DESCRIPTION
This class represents an unknown field. This happens when L<DB::Object::Fields> cannot find a given field used in a SQL query. Instead of returning an error (undef), it returns this object, which is then ignored when he query is formulated.
A warning is issued by L<DB::Object::Fields> when a field is unknown, so make sure to check your error output or your error log.
=head1 METHODS
=head2 as_string
Returns the error message as a regular string.
=head2 error
lib/DB/Object/Query.pm view on Meta::CPAN
while( @arg )
{
if( $self->_is_object( $arg[0] ) && $arg[0]->isa( 'DB::Object::Operator' ) )
{
my $op_object = shift( @arg );
$self->messagec( 5, "[process_where_condition] Argument is a {green}DB::Object::Operator{/} object, calling sub \$process_where_condition->( $op_object )" );
$clause = $process_where_condition->( $op_object );
push( @list, $clause );
next;
}
# This is an already formulated clause
elsif( $self->_is_object( $arg[0] ) && $arg[0]->isa( 'DB::Object::Query::Clause' ) )
{
$self->messagec( 5, "[process_where_condition] Argument is a {green}DB::Object::Query::Clause{/} object, adding it to the list" );
push( @list, shift( @arg ) );
next;
}
# An expression
elsif( $self->_is_a( $arg[0] => 'DB::Object::Expression' ) )
{
$self->messagec( 5, "[process_where_condition] Argument is a {green}DB::Object::Expression{/} object, adding it to the list" );
( run in 0.287 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )