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

Fixes for sqlsrv compatibility #139

Open
wants to merge 3 commits into
base: 3.x
Choose a base branch
from
Open

Conversation

davidpede
Copy link

Summary

Gets writeSchema() working and addresses issue with escaped table prefixes/names format in queries for sqlsrv.

Reason

Schema file generation and all queries using a model were failing.

Notes

This is a first attempt to fix sqlsrv compatibility so all comments welcome.

Due to the table prefix/name escaping required for sqlsrv, currently you need to specify a $tablePrefix and set $restrictPrefix to true in the writeSchema() call. Then set the table prefix in your setPackage() call. This could be improved.

Environment

Database:

  • MS SQL Server 2008 R2

Application:

  • Centos 7
  • PHP Version 7.0.30
  • PDO driver: sqlsrv

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.

None yet

1 participant