Skip to content

Commit

Permalink
fix: fixing bug in PG Numeric Support
Browse files Browse the repository at this point in the history
  • Loading branch information
asthamohta committed Mar 24, 2022
1 parent 9c10094 commit 275e20e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/codec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,8 @@ function decode(value: Value, type: spannerClient.spanner.v1.Type): Value {
case 'NUMERIC':
if (
type.typeAnnotation ===
spannerClient.spanner.v1.TypeAnnotationCode.PG_NUMERIC
spannerClient.spanner.v1.TypeAnnotationCode.PG_NUMERIC ||
type.typeAnnotation === 'PG_NUMERIC'
) {
decoded = new PGNumeric(decoded);
break;
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import {
CreateInstanceResponse,
} from './instance';
import {grpc, GrpcClientOptions, CallOptions, GoogleError} from 'google-gax';
import {google as instanceAdmin} from '../protos/protos';
import {google, google as instanceAdmin} from '../protos/protos';
import {
PagedOptions,
PagedResponse,
Expand Down

0 comments on commit 275e20e

Please sign in to comment.