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
Push down a piece of data insert into z_mysql_fdw VALUES ('xyz', 1694671451644637184);
But when I query the data, the value of the tag_no field is not the value when saved.
The correct value should be 1694671451644637184 instead of 1694671451644637200
The last three significant digits changed from 184 to 200
(I execute the insert statement directly in mysql and there is no problem)
Postgre Version : PostgreSQL 14.8 on aarch64-unknown-linux-gnu, compiled by gcc (GCC) 7.3.0, 64-bit Mysql Version: 8.2.0
The text was updated successfully, but these errors were encountered:
We will check whether we can avoid converting numeric to float8 which should insert the original value, but Im not sure whether that is feasible or not.
CREATE TABLE
valid_numeric(
primary_idvarchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci ,
tag_nonumeric(32,0), PRIMARY KEY (
primary_id) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
CREATE FOREIGN TABLE "public"."z_mysql_fdw" ( "primary_id" varchar(64), "tag_no" numeric(32, 0) ) SERVER "server_mysql_shared" OPTIONS ("dbname" 'csshare', "table_name" 'valid_numeric');
But when I query the data, the value of the tag_no field is not the value when saved.
The correct value should be 1694671451644637184 instead of 1694671451644637200
The last three significant digits changed from 184 to 200
(I execute the insert statement directly in mysql and there is no problem)
Postgre Version : PostgreSQL 14.8 on aarch64-unknown-linux-gnu, compiled by gcc (GCC) 7.3.0, 64-bit
Mysql Version: 8.2.0
The text was updated successfully, but these errors were encountered: