Skip to content

why the operator "ID=999999999999999999999999" cannot get the result , when query on the numeric(24,0) column ?  #263

Description

@tigerzhangyz

CentOS Linux release 7.8.2003 (Core)
psql (PostgreSQL) 12.4

this is tidb database origin data:
`
mysql> create table testzyz(ID numeric(24,0) NOT NULL COMMENT '关联ID' ,primary key(id));
Query OK, 0 rows affected (0.52 sec)

mysql> insert into testzyz values(999999999999999999999999);;
Query OK, 1 row affected (0.01 sec)

mysql> commit;
Query OK, 0 rows affected (0.00 sec)

mysql> select * from testzyz;
+----+
| ID |
+----+
| 999999999999999999999999 |
+----+
1 row in set (0.00 sec)
`

this is FDW data:
`
drop SERVER alchemy_srv cascade;
CREATE SERVER alchemy_srv foreign data wrapper multicorn options (
wrapper 'multicorn.sqlalchemyfdw.SqlAlchemyFdw'
);
drop foreign table MTCTIDBtestzyz;
create foreign table MTCTIDBtestzyz (
id numeric(24,0) NOT NULL
) server alchemy_srv options (
tablename 'testzyz',
primary_key 'id',
db_url 'mysql://root:@xxxx:4000/cloud'
);
CREATE FOREIGN TABLE
fdwzyz=# select * from MTCTIDBtestzyz;
id

999999999999999999999999
(1 row)
fdwzyz=# select * from MTCTIDBtestzyz where id=999999999999999999999999;
id

(0 rows)
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions