File tree Expand file tree Collapse file tree 2 files changed +92
-2
lines changed Expand file tree Collapse file tree 2 files changed +92
-2
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ function getAuroraDataValue (value) {
1515 return value . longValue ;
1616 } else if ( 'stringValue' in value ) {
1717 return value . stringValue ;
18+ } else if ( 'booleanValue' in value ) {
19+ return value . booleanValue ;
1820 } else /* istanbul ignore next */ {
1921 const type = Object . keys ( value ) [ 0 ] ;
2022 throw new Error ( `Unknown value type '${ type } ' from row` ) ;
@@ -53,7 +55,7 @@ function hydrateRecord (record, fields) {
5355 break ;
5456 }
5557
56- row [ field . name ] = value ;
58+ row [ field . label ] = value ;
5759
5860 return row ;
5961 } , { } ) ;
Original file line number Diff line number Diff line change @@ -308,6 +308,22 @@ module.exports = {
308308 tableName : 'foo' ,
309309 type : 4 ,
310310 typeName : 'INT'
311+ } ,
312+ {
313+ arrayBaseColumnType : 0 ,
314+ isAutoIncrement : false ,
315+ isCaseSensitive : false ,
316+ isCurrency : false ,
317+ isSigned : false ,
318+ label : 'bool' ,
319+ name : 'bool' ,
320+ nullable : 0 ,
321+ precision : 1 ,
322+ scale : 0 ,
323+ schemaName : '' ,
324+ tableName : 'foo' ,
325+ type : - 7 ,
326+ typeName : 'BIT'
311327 }
312328 ] ,
313329 numberOfRecordsUpdated : 0 ,
@@ -384,6 +400,9 @@ module.exports = {
384400 } ,
385401 {
386402 isNull : true
403+ } ,
404+ {
405+ booleanValue : true
387406 }
388407 ]
389408 ]
@@ -408,7 +427,8 @@ module.exports = {
408427 text : 'test' ,
409428 enum : 'one' ,
410429 set : new Set ( [ 'one' , 'two' ] ) ,
411- null : null
430+ null : null ,
431+ bool : true
412432 }
413433 ] ,
414434
@@ -1852,6 +1872,68 @@ module.exports = {
18521872 {
18531873 stringValue : ''
18541874 }
1875+ ] ,
1876+ [
1877+ {
1878+ stringValue : 'def'
1879+ } ,
1880+ {
1881+ stringValue : 'test'
1882+ } ,
1883+ {
1884+ stringValue : 'foo'
1885+ } ,
1886+ {
1887+ stringValue : 'bool'
1888+ } ,
1889+ {
1890+ longValue : 22
1891+ } ,
1892+ {
1893+ stringValue : '0'
1894+ } ,
1895+ {
1896+ stringValue : 'NO'
1897+ } ,
1898+ {
1899+ stringValue : 'tinyint'
1900+ } ,
1901+ {
1902+ isNull : true
1903+ } ,
1904+ {
1905+ isNull : true
1906+ } ,
1907+ {
1908+ longValue : 3
1909+ } ,
1910+ {
1911+ longValue : 0
1912+ } ,
1913+ {
1914+ isNull : true
1915+ } ,
1916+ {
1917+ isNull : true
1918+ } ,
1919+ {
1920+ isNull : true
1921+ } ,
1922+ {
1923+ stringValue : 'tinyint(1)'
1924+ } ,
1925+ {
1926+ stringValue : ''
1927+ } ,
1928+ {
1929+ stringValue : ''
1930+ } ,
1931+ {
1932+ stringValue : 'select,insert'
1933+ } ,
1934+ {
1935+ stringValue : ''
1936+ }
18551937 ]
18561938 ]
18571939 } ,
@@ -1964,6 +2046,12 @@ module.exports = {
19642046 type : 'set' ,
19652047 maxLength : 13 ,
19662048 nullable : true
2049+ } ,
2050+ bool : {
2051+ defaultValue : '0' ,
2052+ type : 'tinyint' ,
2053+ maxLength : null ,
2054+ nullable : false
19672055 }
19682056 } ,
19692057
You can’t perform that action at this time.
0 commit comments