Skip to content

Commit

Permalink
fix: display content of BLOB fields if not binary, fixes #628
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio286 committed Jul 21, 2023
1 parent 3104847 commit f831fcd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/renderer/components/WorkspaceTabQueryTableRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,9 @@ const typeFormat = (val: string | number | Date | number[], type: string, precis
}
if (BLOB.includes(type)) {
const buff = Buffer.from(val as string);
if (typeof val === 'string') return val;
const buff = Buffer.from(val as unknown as ArrayBuffer);
if (!buff.length) return '';
const hex = buff.toString('hex').substring(0, 8).toUpperCase();
Expand Down

0 comments on commit f831fcd

Please sign in to comment.