1.3 KiB
1.3 KiB
Db2 LUW query compatibility
Phase 6 uses the live db2_local connection to verify scalar and IN subqueries,
ordered UNION ALL with offset and limit, EXISTS, random ordering, LIKE and
NOT LIKE, and Eloquent datetime hydration for the security settings passkey list.
Regular single-table result reads use the PDO_ODBC NULL workaround. Embedded queries retain their declared projection and native SQL NULL semantics. Nullable TIMESTAMP results handled by the workaround use a Carbon-compatible format with six fractional digits. SQL NULL and empty strings remain distinct.
Limits
- The NULL workaround covers eligible single-table reads through
get()and helpers such asfirst()andpluck(). It does not cover raw SQL, cursors, joins, unions, or arbitrary expressions in the projection. In these cases PDO_ODBC's native result handling applies. - Case-insensitive LIKE uses Db2's UPPER function on both operands and follows the database's string and collation rules.
- Pessimistic locks, joined writes, JSON predicates and seeded random ordering were outside this phase's verification.
Run the tests
APP_ENV=testing php artisan test --do-not-cache-result tests/Feature/Db2/QueryCompatibilityTest.php
APP_ENV=testing php artisan test --do-not-cache-result tests/Feature/Db2
APP_ENV=testing php artisan test --do-not-cache-result