File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -772,6 +772,20 @@ jobs:
772772 $log('[e] EXC: ' . $e->getMessage());
773773 }
774774
775+ // 5) Reproduce the actual testFromBase64Function setup exactly: run
776+ // setUp-style driver construction and then call FROM_BASE64.
777+ try {
778+ $pdo2 = new PDO\SQLite('sqlite::memory:');
779+ $pdo2->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
780+ require __DIR__ . '/tests/bootstrap.php';
781+ $engine = new WP_SQLite_Driver(new WP_SQLite_Connection(['pdo' => $pdo2]), 'wp');
782+ $log('[f] driver constructed');
783+ $r = $engine->query("SELECT FROM_BASE64('SGVsbG8gV29ybGQ=') AS decoded");
784+ $log('[f.call] ' . json_encode($r));
785+ } catch (\Throwable $e) {
786+ $log('[f] EXC: ' . $e->getMessage());
787+ }
788+
775789 $log('[done] script finished cleanly');
776790 PHP
777791
You can’t perform that action at this time.
0 commit comments