Skip to content

Commit

Permalink
SNOW-1332640-structured-types-support - code review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-pmotacki committed Sep 30, 2024
1 parent 64c5267 commit 9715d11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/connection/result/column.js
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ function mapStructuredTypeValue(columnValue, context, metadataField) {
break;
case 'binary':
context.format = context.statementParameters['BINARY_OUTPUT_FORMAT'];
value = convertRawBinary(columnValue, context).toJSON().data;
value = convertRawBinary(columnValue, this, context).toJSON().data;
break;
case 'object': {
const internalContext = {
Expand Down Expand Up @@ -779,7 +779,7 @@ function convertRawVariant(rawColumnValue) {
*
* @returns {Buffer}
*/
function convertRawBinary(rawColumnValue, context) {
function convertRawBinary(rawColumnValue, column, context) {
// Ensure the format is valid.
const format = context.format.toUpperCase();
Errors.assertInternal(format === 'HEX' || format === 'BASE64');
Expand Down

0 comments on commit 9715d11

Please sign in to comment.