You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
`
The text was updated successfully, but these errors were encountered:
tigerzhangyz
changed the title
why the operator "ID=9" cannot get the result, but "ID>=9 and ID<=9" get result, on the int column ?
why the operator "ID=9" cannot get the result, but "ID>=9 and ID<=9" get result, when query on the int column ?
Sep 29, 2020
tigerzhangyz
changed the title
why the operator "ID=9" cannot get the result, but "ID>=9 and ID<=9" get result, when query on the int column ?
why the operator "ID=9" cannot get the result, but "ID>=9 and ID<=9" get result, when query tidb database(same as mysql server) on the int column ?
Sep 29, 2020
tigerzhangyz
changed the title
why the operator "ID=9" cannot get the result, but "ID>=9 and ID<=9" get result, when query tidb database(same as mysql server) on the int column ?
why the operator "ID=999999999999999999999999" cannot get the result , when query on the numeric(24,0) column ?
Sep 29, 2020
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)
`
The text was updated successfully, but these errors were encountered: