fluidex / dingir-exchange

A high performance crypto trading engine
235 stars 63 forks source link

user_id query error #362

Closed 0xmountaintop closed 2 years ago

0xmountaintop commented 2 years ago
Nov 09 05:23:54.811 ERROR dingir_exchange::restapi::user: Database(PgDatabaseError { severity: Error, code: "42883", message: "operator does not exist: integer = text", detail: None, hint: Some("No operator matches the given name and argument types. You might need to add explicit type casts."), position: Some(Original(32)), where: None, schema: None, table: None, column: None, data_type: None, constraint: None, file: Some("parse_oper.c"), line: Some(722), routine: Some("op_error") })    

related: https://github.com/fluidex/dingir-exchange/pull/361

silathdiir commented 2 years ago

It should be a binding issue when generating SQL since id is an integer. I will fix it and add a test case.