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

Make SQL work with case-sensitivie SQLServer #182

Merged

Conversation

wxiaoguang
Copy link
Contributor

@wxiaoguang wxiaoguang commented Jan 1, 2024

In a SQLServer database with case-sensitive collation:

> select * from information_schema.tables;
SQL Error [208] [S0002]: Invalid object name 'information_schema.tables'.

> select * from INFORMATION_SCHEMA.TABLES where table_type='...';
(ok)
> select * from SYS.IDENTITY_COLUMNS;
SQL Error [208] [S0002]: Invalid object name 'SYS.IDENTITY_COLUMNS'.

> select * from sys.identity_columns;
(ok)

@puni9869
Copy link

puni9869 commented Jan 1, 2024

Is this change is restricted to sql server version?

@wxiaoguang
Copy link
Contributor Author

Is this change is restricted to sql server version?

No

@wxiaoguang
Copy link
Contributor Author

Hi @andreynering, is there any interest in this fix? Indeed it is a bug ....

@andreynering andreynering merged commit c4d8023 into go-testfixtures:master Feb 18, 2024
@andreynering
Copy link
Contributor

Thanks @wxiaoguang! And sorry for the wait. I'll make a release still today.

andreynering added a commit that referenced this pull request Feb 18, 2024
@wxiaoguang wxiaoguang deleted the fix-sqlserver-case-sensitivie branch February 18, 2024 01:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants