Open WrdVdb opened 10 months ago
--- /dev/null
+++ ../src/Platforms/SQLServerPlatform.php
@@ -1548,6 +1548,7 @@
'uniqueidentifier' => Types::GUID,
'varbinary' => Types::BINARY,
'varchar' => Types::STRING,
+ 'sysname' => Types::STRING,
];
}
Please send a PR.
I didn't find a PR and the problem still happen in doctrine/3.8.6. It's the PR's fault that it hasn't been fixed yet?
I didn't find a PR and the problem still happen in doctrine/3.8.6. It's the PR's fault that it hasn't been fixed yet?
Kinda. Bugs don't fix themselves, you know. Somebody has to do it.
Bug Report
We have enabled cdc (change data capture) on our SQLserver database. And now we get the error
Unknown database type sysname requested, Doctrine\DBAL\Platforms\SQLServer2012Platform may not support it.
doctrine/dbal 3.7.2
Summary
Dump of field:
When I add "'sysname' => Types::STRING," to the file vendor/doctrine/dbal/src/Platforms/SQLServerPlatform.php the problem is fixed.
How to reproduce
Error happens after enabling cdc in the database.
Expected behaviour
No errors when saving records.