-
-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with a dash (-) in the database name: No matching schemas found #176
Comments
Please try |
We replace the dash (-) with an underscore (_) when we create the database, so we have solved the problem in another way. Anyway thanks for the reply, but I haven't tested it, but from my knowledge about regular expressions, I don't understand why you try to escape the double quotes, they haven't any special meaning in regular expression, therefore it should be |
I am glad you found a workaround. Thanks for using SchemaCrawler. |
For everyone who has the same problem. The string to be compared to the schema has the form |
I met a problem:
But the table structure cannot be queried,
What is returned is the lowercase database name hello-test, |
Environment
SchemaCrawler 14.20.03
Java 8 Update 161
Windows 8.1
SQL Server 2016
mssql-jdbc-6.2.2.jre8.jar
Issue
I have an automatically generated database from Jenkins with the name of the branch in the code repository. Now we have a new branch with a dash in the name (app-cfg) and the generated database name is obviously app-cfg. The executed command by Jenkins is
Removing the dash from the database name works, but because it is an automated process I would like to know how to fix it. I tried to escape the dash with a backslash, by adding the square brackets, by putting it in double and single quotes, but nothing worked. When I took a look to the output I saw something strange:
The database name because of dash is enclosed in a double quote, I tried to use the regular expression matching the
"app-cfg".dbo
string, but it didn't work either. So is there a solution to this problem? Actually enclosing the database name in a double quote wouldn't be a solution in my case, because it would break all other builds with a branch name without dash in it. So what I'm looking for is for a solution which works with and without a dash in the name of the branch and therefore in the name of the database.output.zip
The text was updated successfully, but these errors were encountered: