summaryrefslogtreecommitdiff
path: root/src/exchangedb/pg_select_aml_process.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/exchangedb/pg_select_aml_process.c')
-rw-r--r--src/exchangedb/pg_select_aml_process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/exchangedb/pg_select_aml_process.c b/src/exchangedb/pg_select_aml_process.c
index c165e230b..6ee0dbeb9 100644
--- a/src/exchangedb/pg_select_aml_process.c
+++ b/src/exchangedb/pg_select_aml_process.c
@@ -145,7 +145,7 @@ TEH_PG_select_aml_process (
",status"
" FROM aml_status"
" WHERE aml_status_serial_id > $2"
- " AND $1 = status & $1"
+ " AND status = $1"
" ORDER BY aml_status_serial_id INC"
" LIMIT $3");
PREPARE (pg,