Skip to content

Commit

Permalink
Added missing 'row' SQL result type (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
joncombe authored Jan 8, 2025
1 parent 11f703c commit f4ba5e8
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 12 deletions.
25 changes: 14 additions & 11 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,20 @@

## Unreleased

- Dependabot: bump node from 23.3.0-slim to 23.5.0-slim
- Dependabot: bump @radix-ui/react-select from 2.1.1 to 2.1.4
- Dependabot: bump less from 4.2.0 to 4.2.1
- Dependabot: bump ts-jest from 29.1.5 to 29.2.5
- Dependabot: bump eslint-plugin-react from 7.34.3 to 7.37.3
- Dependabot: bump tailwind-merge from 2.5.4 to 2.6.0
- Dependabot: bump react-intl from 6.6.8 to 7.0.4
- Dependabot: bump @radix-ui/react-slot from 1.1.0 to 1.1.1
- Dependabot: bump @radix-ui/react-label from 2.1.0 to 2.1.1
- Dependabot: bump postcss from 8.4.47 to 8.4.49
- Dependabot: bump msw from 1.3.2 to 2.7.0
## 2025-01-08 - 0.19.10

- Dependabot: bump node from 23.3.0-slim to 23.5.0-slim.
- Dependabot: bump @radix-ui/react-select from 2.1.1 to 2.1.4.
- Dependabot: bump less from 4.2.0 to 4.2.1.
- Dependabot: bump ts-jest from 29.1.5 to 29.2.5.
- Dependabot: bump eslint-plugin-react from 7.34.3 to 7.37.3.
- Dependabot: bump tailwind-merge from 2.5.4 to 2.6.0.
- Dependabot: bump react-intl from 6.6.8 to 7.0.4.
- Dependabot: bump @radix-ui/react-slot from 1.1.0 to 1.1.1.
- Dependabot: bump @radix-ui/react-label from 2.1.0 to 2.1.1.
- Dependabot: bump postcss from 8.4.47 to 8.4.49.
- Dependabot: bump msw from 1.3.2 to 2.7.0.
- Add missing "row" column type to SQL results table.

## 2024-12-19 - 0.19.9

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cratedb/crate-gc-admin",
"version": "0.19.9",
"version": "0.19.10",
"author": "cratedb",
"private": false,
"type": "module",
Expand Down
3 changes: 3 additions & 0 deletions src/components/SQLResults/TypeAwareValue/TypeAwareValue.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ function TypeAwareValue({
case ColumnType.UNCHECKED_OBJECT:
ret = <JSONTree json={value as object} />;
break;
case ColumnType.ROW:
ret = <JSONTree json={value as object} arrayLabel="Row" />;
break;
case ColumnType.FLOAT_VECTOR:
ret = <JSONTree json={value as object} arrayLabel="Vector" />;
break;
Expand Down
2 changes: 2 additions & 0 deletions src/components/SQLResults/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ export const dbTypeToHumanReadable = (tp: ColumnType | ColumnType[] | undefined)
return 'timestamp';
case ColumnType.UNCHECKED_OBJECT:
return 'object';
case ColumnType.ROW:
return 'row';
case ColumnType.REGPROC:
return 'regproc';
case ColumnType.TIME:
Expand Down
1 change: 1 addition & 0 deletions src/types/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export enum ColumnType {
GEOSHAPE = 14,
TIMESTAMP_WITHOUT_TZ = 15,
UNCHECKED_OBJECT = 16,
ROW = 18,
REGPROC = 19,
TIME = 20,
OIDVECTOR = 21,
Expand Down

0 comments on commit f4ba5e8

Please sign in to comment.