-
Notifications
You must be signed in to change notification settings - Fork 373
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
Unknown type in sqlsrv_buffered_query::sqlsrv_buffered_query When querying extended properties #1079
Comments
hi @Beakerboy please provide few lines before and after this line 67 |
Wow! Such fast response. Line 67 is the last in this block.
Full file is here(https://github.com/Beakerboy/sqlsrv/blob/Funky-default/drivers/lib/Drupal/Driver/Database/sqlsrv/Statement.php) I’m working on the sqlsrv driver for Drupal, trying to get it to pass all the Core Integration tests. The current driver just skips over all schema description functionality, (possibly because of this issue?) |
The repository linked above has both an Appveyor (Windows/PHP/IIS) and Travis (Ubuntu/PHP/Apache) Script to install Drupal And run test suites. The error occurs on both. |
Thanks for the info @Beakerboy |
At first glance, I can't seem to find |
I believe the |
Thanks @Beakerboy I can reproduce the issue in #51 with buffered queries. I'll investigate further and get back to you. |
Fixed! Thanks! |
EXEC sp_addextendedproperty @name=N'MS_Description', @value='Schema table description may contain "quotes" and could be long—very long indeed.',@level0type = N'Schema', @level0name = 'dbo',@level1type = N'Table', @level1name = 'test48992550test_table'
SELECT prop.value FROM information_schema.tables tbl LEFT JOIN sys.extended_properties prop ON prop.major_id = object_id(tbl.table_schema + '.' + tbl.table_name) AND prop.minor_id = 0 AND prop.name = 'MS_Description' WHERE tbl.table_type = 'base table' AND tbl.table_schema='dbo' AND tbl.table_name='test48992550test_table'
Produces the error:
Drupal\KernelTests\Core\Database\SchemaTest::testSchema PHPUnit\Framework\Exception: PHP Fatal error: Unknown type in sqlsrv_buffered_query::sqlsrv_buffered_query in /home/travis/build/Beakerboy/drupal-project/web/drivers/lib/Drupal/Driver/Database/sqlsrv/Statement.php on line 67
PHP Driver version or file name
sqlsrv-5.6.1
pdo_sqlsrv-5.6.1
SQL Server version
mssql-server-2019 xenial
Client operating system
Ubuntu
PHP version
7.2.15
The text was updated successfully, but these errors were encountered: