Minor Changes
-
#829
bed6b20Thanks @gajus! - fix:InvalidInputErrorraised for SQLSTATE 22P02 (invalid text representation) includes the original error ascause, like the other errors that the driver maps. -
#829
bed6b20Thanks @gajus! - fix:stream()rejects with the error of atransformRowortransformRowAsyncinterceptor (e.g. aSchemaValidationErrorof a result parser). Previously, the error was an unhandled rejection,stream()never settled, and the connection was never released.stream()also waits for the promise returned by the stream handler (e.g. anasyncfunction that usesfor await). When the consumer of a stream fails, the driver closes the cursor, so that the connection can be used again (e.g. to roll back the transaction).
Patch Changes
- Updated dependencies []:
- @slonik/driver@49.13.0
- @slonik/errors@49.13.0
- @slonik/sql-tag@49.13.0
- @slonik/types@49.13.0
- @slonik/utilities@49.13.0