Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
shiyuhang0 committed Aug 11, 2023
1 parent 4f9c7d6 commit 79af33c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ jobs:
${{ runner.os }}-node-
- run: |
npm ci
export DATABASE_URL=${{ secrets.DATABASE_URL }}
npm run integrationTest
6 changes: 3 additions & 3 deletions src/decode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function bytes(text: string): number[] {
}

export function cast(field: Field, value: string | null): any {
if (isNull(value, field)){
if (isNull(value, field)) {
return null
}

Expand All @@ -29,10 +29,10 @@ export function cast(field: Field, value: string | null): any {
case 'FLOAT':
case 'DOUBLE':
return parseFloat(value)
// set and enum will be converted to char.
case 'BIGINT':
case 'UNSIGNED BIGINT':
case 'DECIMAL':
// set and enum will be converted to char.
case 'CHAR':
case 'VARCHAR':
case 'BINARY':
Expand Down Expand Up @@ -85,7 +85,7 @@ function isNull(value, field: Field): boolean {
case 'DATETIME':
case 'TIMESTAMP':
case 'JSON':
return true
return true
// set and enum will be converted to char.
case 'CHAR':
case 'VARCHAR':
Expand Down
3 changes: 1 addition & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { DatabaseError } from './error.js'
import { Config, ExecuteOptions, ExecuteArgs } from './config.js'
import { postQuery } from './serverless.js'

export { Config, ExecuteOptions, ExecuteArgs,DatabaseError }
export { Config, ExecuteOptions, ExecuteArgs, DatabaseError }

// serverless driver returns a full result by default
export type Row = Record<string, any> | any[]
Expand Down Expand Up @@ -87,7 +87,6 @@ class Connection {
}
}


async begin(): Promise<Tx> {
const conn = new Connection(this.config)
const tx = new Tx(conn)
Expand Down

0 comments on commit 79af33c

Please sign in to comment.