Repository navigation
Commit 3507b43
committed
Preserve explicit stream values in binary cursor bindings
Explicit cursor parameters already support stream resources as LOB bindings. Reversing a binary attribute cast must not send those raw bytes through the readable UUID or ULID encoder, which rejects resource values.
Normalize streams through BinaryParameter::fromStream before invoking the caster. Keep non-binary attributes unchanged and preserve native conversion errors for malformed readable values. Extend the existing explicit-cursor regression while retaining binary-wrapper, encoded-cursor and source-alias coverage without duplicate execution.
The regression reproduces the resource TypeError before the correction. The complete binary and cursor integration suites pass on SQLite, PostgreSQL, MySQL and MariaDB; formatting and complete static analysis also pass.1 parent f287863 commit 3507b43
2 files changed
Lines changed: 24 additions & 4 deletions
File tree
- src/database/src/Eloquent/Concerns
- tests/Integration/Database
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1980 | 1980 | | |
1981 | 1981 | | |
1982 | 1982 | | |
| 1983 | + | |
| 1984 | + | |
1983 | 1985 | | |
1984 | 1986 | | |
1985 | 1987 | | |
1986 | 1988 | | |
1987 | 1989 | | |
1988 | 1990 | | |
1989 | 1991 | | |
| 1992 | + | |
| 1993 | + | |
| 1994 | + | |
| 1995 | + | |
1990 | 1996 | | |
1991 | 1997 | | |
1992 | 1998 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
262 | 276 | | |
263 | 277 | | |
264 | 278 | | |
| |||
0 commit comments