Skip to content

Commit

Permalink
fix order_by case sensitivity
Browse files Browse the repository at this point in the history
  • Loading branch information
TristenHarr committed Jun 7, 2024
1 parent 84e2fd7 commit 4a416a2
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# DuckDB Connector Changelog
This changelog documents changes between release tags.

## [0.0.16] - 2024-05-6
* Change orderBy to use default casing. (Ordering is case-sensitive and uses underlying implementation which differs from Postgres)

## [0.0.15] - 2024-05-6
* Remove linux/arm/v7 from platforms

Expand Down
4 changes: 2 additions & 2 deletions connector-definition/connector-metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
packagingDefinition:
type: PrebuiltDockerImage
dockerImage: ghcr.io/hasura/ndc-duckdb:v0.0.15
dockerImage: ghcr.io/hasura/ndc-duckdb:v0.0.16
supportedEnvironmentVariables:
- name: DUCKDB_URL
description: The url for the DuckDB database
commands:
update:
type: Dockerized
dockerImage: ghcr.io/hasura/ndc-duckdb:v0.0.15
dockerImage: ghcr.io/hasura/ndc-duckdb:v0.0.16
commandArgs:
- update
dockerComposeWatch:
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "duckdb-sdk",
"version": "0.0.15",
"version": "0.0.16",
"description": "",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/handlers/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ function build_query(
currentAlias = nextAlias;
}
order_elems.push(
`LOWER(${escape_double(currentAlias)}.${escape_double(elem.target.name)}) ${elem.order_direction}`
`${escape_double(currentAlias)}.${escape_double(elem.target.name)} ${elem.order_direction}`
);
}
break;
Expand Down

0 comments on commit 4a416a2

Please sign in to comment.