-
When using the flink-cdc-connectors SQL Server connector, database names containing dashes (e.g., WPZ0011-01XX) cause an SQL syntax error. Normally, quoting the database name works, but the connector does not allow quoting when specifying the databaseList(). This leads to an error when trying to read tables from such databases. To Reproduce:
Versions: Expected behavior Error Log |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I think at least query should be quoted here to solve that issue, not sure if needed in other places, That FROM database.table in select should be quoted to avoid above issue, I am going to test it and I let you know the results |
Beta Was this translation helpful? Give feedback.
-
Fix worked fine just quoting the dbName in the query solved the issue: |
Beta Was this translation helpful? Give feedback.
Fix worked fine just quoting the dbName in the query solved the issue:
"SELECT * FROM ""
+ dbName
+ "".INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE';",