Skip to content
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

Modify MSSQL query for when obtaining autoincrement column information GH-4719 #5062

Merged
merged 1 commit into from
Oct 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -81,7 +81,7 @@ private String getQueryForDatabaseAndSchema(Database database, Schema schema) th
"CAST(seed_value AS bigint) AS start_value, " +
"CAST(increment_value AS bigint) AS increment_by " +
"FROM sys.identity_columns " +
"WHERE sys.schemas = '" + schema.getName() + "'";
"WHERE object_schema_name(object_id) = '" + schema.getName() + "'";
} else if (database instanceof PostgresDatabase) {
int version = 9;
try {
Expand Down