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.2.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
my( $field, $value );
while( @arg )
{
if( $self->_is_object( $arg[0] ) && $arg[0]->isa( 'DB::Object::Operator' ) )
{
my $op_object = shift( @arg );
$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' ) )
{
push( @list, shift( @arg ) );
next;
}
# An expression
elsif( $self->_is_a( $arg[0] => 'DB::Object::Expression' ) )
{
push( @list, shift( @arg ) );
next;
( run in 0.669 second using v1.01-cache-2.11-cpan-39bf76dae61 )