@@ -9,7 +9,7 @@ test("simple, unnamed prepared statement", function(){
99 } ) ;
1010
1111 assert . emits ( query , 'row' , function ( row ) {
12- assert . equal ( row . fields [ 0 ] , 20 ) ;
12+ assert . equal ( row [ 0 ] , 20 ) ;
1313 } ) ;
1414
1515 assert . emits ( query , 'end' , function ( ) {
@@ -39,7 +39,7 @@ test("named prepared statement", function() {
3939 } ) ;
4040
4141 assert . emits ( query , 'row' , function ( row ) {
42- assert . equal ( row . fields [ 0 ] , 'Brian' ) ;
42+ assert . equal ( row [ 0 ] , 'Brian' ) ;
4343 } ) ;
4444
4545 assert . emits ( query , 'end' , function ( ) {
@@ -57,7 +57,7 @@ test("named prepared statement", function() {
5757 } ) ;
5858
5959 assert . emits ( cachedQuery , 'row' , function ( row ) {
60- assert . equal ( row . fields [ 0 ] , 'Aaron' ) ;
60+ assert . equal ( row [ 0 ] , 'Aaron' ) ;
6161 } ) ;
6262
6363 assert . emits ( cachedQuery , 'end' , function ( ) {
@@ -75,11 +75,11 @@ test("named prepared statement", function() {
7575
7676 test ( "gets first row" , function ( ) {
7777 assert . emits ( q , 'row' , function ( row ) {
78- assert . equal ( row . fields [ 0 ] , "Aaron" ) ;
78+ assert . equal ( row [ 0 ] , "Aaron" ) ;
7979
8080 test ( "gets second row" , function ( ) {
8181 assert . emits ( q , 'row' , function ( row ) {
82- assert . equal ( row . fields [ 0 ] , "Brian" ) ;
82+ assert . equal ( row [ 0 ] , "Brian" ) ;
8383 } ) ;
8484 } ) ;
8585
@@ -112,7 +112,7 @@ test("prepared statements on different clients", function() {
112112 } ) ;
113113 test ( 'gets right data back' , function ( ) {
114114 assert . emits ( query , 'row' , function ( row ) {
115- assert . equal ( row . fields [ 0 ] , 26 ) ;
115+ assert . equal ( row [ 0 ] , 26 ) ;
116116 } ) ;
117117 } ) ;
118118
@@ -136,7 +136,7 @@ test("prepared statements on different clients", function() {
136136
137137 test ( 'gets right data' , function ( ) {
138138 assert . emits ( query , 'row' , function ( row ) {
139- assert . equal ( row . fields [ 0 ] , 1 ) ;
139+ assert . equal ( row [ 0 ] , 1 ) ;
140140 } ) ;
141141 } ) ;
142142
0 commit comments