Commit 0b4816bd authored by Ian Longden's avatar Ian Longden
Browse files

LIKE and = the wrong way round in the test

parent 2cfd651e
......@@ -1133,20 +1133,20 @@ SSQL
if ( defined($exdbname) ) {
if ( index( $exdbname, '%' ) != -1 ) {
$sql .= " AND exDB.db_name = "
$sql .= " AND exDB.db_name LIKE "
. $self->dbc()->db_handle()->quote( $exdbname, SQL_VARCHAR );
} else {
$sql .= " AND exDB.db_name LIKE "
$sql .= " AND exDB.db_name = "
. $self->dbc()->db_handle()->quote( $exdbname, SQL_VARCHAR );
}
}
if ( defined($exdb_type) ) {
if ( index( $exdb_type, '%' ) != -1 ) {
$sql .= " AND exDB.type = "
$sql .= " AND exDB.type LIKE "
. $self->dbc()->db_handle()->quote( $exdb_type, SQL_VARCHAR );
} else {
$sql .= " AND exDB.type LIKE "
$sql .= " AND exDB.type = "
. $self->dbc()->db_handle()->quote( $exdb_type, SQL_VARCHAR );
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment