File tree Expand file tree Collapse file tree 2 files changed +18
-18
lines changed Expand file tree Collapse file tree 2 files changed +18
-18
lines changed Original file line number Diff line number Diff line change @@ -2051,15 +2051,15 @@ t('Describe a statement', async() => {
20512051} )
20522052
20532053t ( 'Include table oid and column number in column details' , async ( ) => {
2054- await sql `create table tester (name text, age int)`
2055- const r = await sql `select name, age from tester where name like $1 and age > $2` . describe ( ) ;
2056- const [ { oid } ] = await sql `select oid from pg_class where relname = 'tester'` ;
2057-
2058- return [
2059- `table:${ oid } ,number:1|table:${ oid } ,number:2` ,
2060- `${ r . columns . map ( c => `table:${ c . table } ,number:${ c . number } ` ) . join ( '|' ) } ` ,
2061- await sql `drop table tester`
2062- ]
2054+ await sql `create table tester (name text, age int)`
2055+ const r = await sql `select name, age from tester where name like $1 and age > $2` . describe ( )
2056+ const [ { oid } ] = await sql `select oid from pg_class where relname = 'tester'`
2057+
2058+ return [
2059+ `table:${ oid } ,number:1|table:${ oid } ,number:2` ,
2060+ `${ r . columns . map ( c => `table:${ c . table } ,number:${ c . number } ` ) . join ( '|' ) } ` ,
2061+ await sql `drop table tester`
2062+ ]
20632063} )
20642064
20652065t ( 'Describe a statement without parameters' , async ( ) => {
Original file line number Diff line number Diff line change @@ -2053,15 +2053,15 @@ t('Describe a statement', async() => {
20532053} )
20542054
20552055t ( 'Include table oid and column number in column details' , async ( ) => {
2056- await sql `create table tester (name text, age int)`
2057- const r = await sql `select name, age from tester where name like $1 and age > $2` . describe ( ) ;
2058- const [ { oid } ] = await sql `select oid from pg_class where relname = 'tester'` ;
2059-
2060- return [
2061- `table:${ oid } ,number:1|table:${ oid } ,number:2` ,
2062- `${ r . columns . map ( c => `table:${ c . table } ,number:${ c . number } ` ) . join ( '|' ) } ` ,
2063- await sql `drop table tester`
2064- ]
2056+ await sql `create table tester (name text, age int)`
2057+ const r = await sql `select name, age from tester where name like $1 and age > $2` . describe ( )
2058+ const [ { oid } ] = await sql `select oid from pg_class where relname = 'tester'`
2059+
2060+ return [
2061+ `table:${ oid } ,number:1|table:${ oid } ,number:2` ,
2062+ `${ r . columns . map ( c => `table:${ c . table } ,number:${ c . number } ` ) . join ( '|' ) } ` ,
2063+ await sql `drop table tester`
2064+ ]
20652065} )
20662066
20672067t ( 'Describe a statement without parameters' , async ( ) => {
You can’t perform that action at this time.
0 commit comments