Replies: 3 comments 3 replies
-
|
Hi @pablotrin , Maybe there is a bug, could you share the DDL of the source and sink tables and the replicadb configuration file? Thanks. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Hi,
Here are the tables and config file. Thanks.
source table:
----------------
CREATE TABLE `protocolos` (
`id_empresa` VARCHAR(20) NOT NULL COLLATE 'utf8_general_ci',
`id_orden` INT(11) NOT NULL,
`fecha_orden` DATETIME NULL DEFAULT NULL,
`nombre_apellido_paciente` VARCHAR(60) NULL DEFAULT NULL COLLATE
'utf8_general_ci',
`tipo_doc_paciente` VARCHAR(3) NULL DEFAULT NULL COLLATE 'utf8_general_ci',
`nro_doc_paciente` VARCHAR(40) NULL DEFAULT NULL COLLATE 'utf8_general_ci',
`matricula_profesional` VARCHAR(15) NULL DEFAULT NULL COLLATE
'utf8_general_ci',
`diagnostico` VARCHAR(250) NULL DEFAULT NULL COLLATE 'utf8_general_ci',
`protocolo_PDF` MEDIUMBLOB NULL DEFAULT NULL,
`fecha_nac_paciente` DATE NULL DEFAULT NULL,
`sexo_paciente` VARCHAR(1) NULL DEFAULT NULL COLLATE 'utf8_general_ci',
`id_laboratorio_derivante` INT(11) NULL DEFAULT NULL,
`pdf_confidencial` MEDIUMBLOB NULL DEFAULT NULL,
`centro` VARCHAR(50) NOT NULL DEFAULT '' COLLATE 'utf8_general_ci',
PRIMARY KEY (`id_empresa`, `id_orden`, `centro`) USING BTREE,
INDEX `id_empresa` (`id_empresa`) USING BTREE,
INDEX `id_orden` (`id_orden`) USING BTREE,
INDEX `protocolos_tipo_doc_paciente_IDX` (`tipo_doc_paciente`,
`nro_doc_paciente`) USING BTREE
)
COLLATE='utf8_general_ci'
ENGINE=InnoDB
;
sink table:
-------------
CREATE TABLE `protocolos` (
`id_empresa` VARCHAR(20) NOT NULL DEFAULT '0' COLLATE 'utf8_general_ci',
`id_orden` INT(10) NOT NULL DEFAULT '0',
`fecha_orden` DATETIME NULL DEFAULT NULL,
`nombre_apellido_paciente` VARCHAR(60) NULL DEFAULT NULL COLLATE
'utf8_general_ci',
`tipo_doc_paciente` VARCHAR(3) NULL DEFAULT NULL COLLATE 'utf8_general_ci',
`nro_doc_paciente` VARCHAR(40) NULL DEFAULT NULL COLLATE 'utf8_general_ci',
`matricula_profesional` VARCHAR(15) NULL DEFAULT NULL COLLATE
'utf8_general_ci',
`diagnostico` VARCHAR(250) NULL DEFAULT NULL COLLATE 'utf8_general_ci',
`protocolo_PDF` MEDIUMBLOB NULL DEFAULT NULL,
`fecha_nac_paciente` DATE NULL DEFAULT NULL,
`sexo_paciente` VARCHAR(1) NULL DEFAULT NULL COLLATE 'utf8_general_ci',
`id_laboratorio_derivante` INT(10) NULL DEFAULT NULL,
`pdf_confidencial` MEDIUMBLOB NULL DEFAULT NULL,
`centro` VARCHAR(50) NOT NULL DEFAULT '' COLLATE 'utf8_general_ci',
PRIMARY KEY (`id_empresa`, `id_orden`, `centro`) USING BTREE,
INDEX `id_empresa` (`id_empresa`) USING BTREE,
INDEX `id_orden` (`id_orden`) USING BTREE,
INDEX `protocolos_tipo_doc_paciente_IDX` (`tipo_doc_paciente`,
`nro_doc_paciente`) USING BTREE
)
COLLATE='utf8_general_ci'
ENGINE=InnoDB
;
config file
-------------
######################## ReplicadB General Options ########################
mode=incremental
jobs=1
fetch.size=100
verbose=false
## Help us to improve by activating usage analysis through the Sentry
service. Or set up your own Sentry DSN
sentry.dsn=
***@***.***/5962725
############################# Soruce Options ##############################
source.connect=jdbc:mysql://xxxxxxxxxx:8360/ zzzzzzzzz
source.user=<user>
source.password=<pass>
source.table=protocolos
source.where=id_empresa = '123456'
############################# Sink Options ################################
sink.connect=jdbc:mysql://yyyyyyyyyy:3306/zzzzzzzzz
sink.user=<other_user>
sink.password=<other_pass>
sink.table=protocolos
sink.staging.table=protocolos_1
El vie, 21 ene 2022 a la(s) 06:02, Oscar Salvador Magallanes (
***@***.***) escribió:
… Hi @pablotrin <https://github.com/pablotrin> ,
Maybe there is a bug, could you share the DDL of the source and sink
tables and the replicadb configuration file?
Thanks.
—
Reply to this email directly, view it on GitHub
<#55 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABGO3Q5UNEML43MEC6U6O4DUXEOJNANCNFSM5LZKUC7Q>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Hi @pablotrin There is a new version v0.11.8 that fixes the handling of binary data in MySQL and MariaDB. Does this solve your bug? Regards! |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My source mysql database have a couple of mediumblob fileds. How can replicate them to my sink (also Mysql) database?
As I'm getting this error:
Beta Was this translation helpful? Give feedback.
All reactions