Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: gajus/slonik
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v34.2.0
Choose a base ref
...
head repository: gajus/slonik
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v34.2.1
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Sep 26, 2023

  1. fix: correct row type (fixes #499)

    gajus committed Sep 26, 2023
    Copy the full SHA
    40f0fd3 View commit details
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/errors.ts
6 changes: 3 additions & 3 deletions src/errors.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
type PrimitiveValueExpression,
type Query,
type SerializableValue,
type QueryResultRow,
} from './types';
import ExtendableError from 'es6-error';
import { type ZodIssue } from 'zod';
@@ -86,11 +86,11 @@ export class SchemaValidationError extends SlonikError {

public values: readonly PrimitiveValueExpression[];

public row: SerializableValue;
public row: QueryResultRow;

public issues: ZodIssue[];

public constructor(query: Query, row: SerializableValue, issues: ZodIssue[]) {
public constructor(query: Query, row: QueryResultRow, issues: ZodIssue[]) {
super('Query returned rows that do not conform with the schema.');

this.sql = query.sql;