Closed alexander-schranz closed 3 years ago
Looks like the CI is failing with:
Crate\PDO\Exception\PDOException: Unsupported driver attribute
Open for any input here what the best would be to create the correct statement here.
Hi Alexander,
thank you for this patch. Currently, CI is still installing doctrine/dbal (2.10.4)
.
Can I ask you to accompany your patch by a respective bump to the Doctrine DBAL version this improvement was intended for? Then, CI will pick it up and run the corresponding tests on it [1].
With kind regards, Andreas.
[1] Please note that composer update --lock
needs to be invoked with PHP 7.2, as this currently is the minimum supported version before moving on to PHP 8.0, which will implicitly drop support for PHP 7.2 again. Please let me know if your system/sandbox is not able to do that, so I will be able to chime in.
@amotl did update the lock file.
@amotl looks like the statementClass
attribute was never implemented I did update the code that it is now used. https://github.com/crate/crate-pdo/pull/123
Locally with the PR I still get 3 failing tests but not sure if they only fail for me:
Looks like the
statementClass
attribute was never implemented I did update the code that it is now used: https://github.com/crate/crate-pdo/pull/123.
Thank you. I turned that into another release, see https://github.com/crate/crate-pdo/pull/124.
Locally with the PR I still get 3 failing tests but not sure if they only fail for me:
Down to two, see [1].
There were 2 failures:
1) Crate\Test\DBAL\Platforms\CratePlatformTest::testAsciiSQLDeclaration with data set #0 ('VARCHAR(12)', array(12))
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'VARCHAR(12)'
+'TEXT'
/home/runner/work/crate-dbal/crate-dbal/vendor/doctrine/dbal/tests/Doctrine/Tests/DBAL/Platforms/AbstractPlatformTestCase.php:1472
2) Crate\Test\DBAL\Platforms\CratePlatformTest::testAsciiSQLDeclaration with data set #1 ('CHAR(12)', array(12, true))
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'CHAR(12)'
+'TEXT'
/home/runner/work/crate-dbal/crate-dbal/vendor/doctrine/dbal/tests/Doctrine/Tests/DBAL/Platforms/AbstractPlatformTestCase.php:1472
[1] https://github.com/crate/crate-dbal/runs/2453539267#step:7:17
@amotl Now only 2 tests are failing:
I did have a look at previous runs and seems like this are new tests (first line this run, second line old CI run on github):
.S....S.....SSS...........FF
.S....S.....SSS...........
I will adjust the test case as I think there is in crate no difference between VARCHAR(12)
or TEXT
type.
I can confirm all tests work fine on my machine with your most recent b11696a.
@amotl looks good now from my side :)
@amotl Thx for your support! The PHP 8 PR #111 is now also rebased.
Thank you!
Summary of the changes / Why this is an improvement
Fixes #112
Checklist