Skip to content

Commit

Permalink
Merge branch 'master' into AP-1415
Browse files Browse the repository at this point in the history
  • Loading branch information
teaf-wise authored Aug 15, 2023
2 parents a604e22 + b7c3b42 commit a59872f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pipelinewise/fastsync/commons/tap_mysql.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ def get_table_columns(self, table_name, max_num=None, date_type='date'):
WHEN data_type IN ('blob', 'tinyblob', 'mediumblob', 'longblob')
THEN CONCAT('REPLACE(hex(`', column_name, '`)', ", '\n', ' ')")
WHEN data_type IN ('binary', 'varbinary')
THEN concat('REPLACE(REPLACE(hex(trim(trailing CHAR(0x00) from `',COLUMN_NAME,'`))', ", '\n', ' '), '\r', '')")
THEN concat('REPLACE(REPLACE(hex(`',COLUMN_NAME,'`)', ", '\n', ' '), '\r', '')")
WHEN data_type IN ('bit')
THEN concat('cast(`', column_name, '` AS unsigned)')
WHEN data_type IN ('date')
Expand Down
2 changes: 1 addition & 1 deletion singer-connectors/tap-mysql/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pipelinewise-tap-mysql==1.5.5
pipelinewise-tap-mysql==1.5.6
2 changes: 1 addition & 1 deletion tests/db/tap_mysql_data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1608,7 +1608,7 @@ DROP TABLE IF EXISTS `all_datatypes`;
CREATE TABLE `all_datatypes` (
c_char CHAR PRIMARY KEY,
c_varchar VARCHAR(100),
c_binary BINARY,
c_binary BINARY(6),
c_varbinary VARBINARY(100),
c_blob BLOB,
c_tinyblob TINYBLOB,
Expand Down

0 comments on commit a59872f

Please sign in to comment.