Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Quoted Table name are not supported #2385

Open
1 task done
33Moka33 opened this issue Sep 16, 2024 · 2 comments · May be fixed by #2473
Open
1 task done

[Bug]: Quoted Table name are not supported #2385

33Moka33 opened this issue Sep 16, 2024 · 2 comments · May be fixed by #2473
Labels
bug Something isn't working pgsql an issue thats specific to pgsql triage issues to be triaged

Comments

@33Moka33
Copy link

What happened?

I tried to use DAB on my Postgresql DB. My table name are case sensitive.
When i try to start i get a failure.

Here is a sample of my dab-config.json
"AssetHealthState": {
"source": {
"object": "asset_health."AssetHealthState"",
"type": "table"
},

Version

Microsoft.DataApiBuilder 1.2.10+c7ca8db8558a63919c530e454c8f18b45d5b931c

What database are you using?

PostgreSQL

What hosting model are you using?

Local (including CLI)

Which API approach are you accessing DAB through?

REST

Relevant log output

failinfo: Azure.DataApiBuilder.Service.Startup[0]
      Unable to complete runtime initialization. Refer to exception for error details.
      Azure.DataApiBuilder.Service.Exceptions.DataApiBuilderException: Cannot obtain Schema for entity AssetHealthState with underlying database object source: asset_health."AssetHealthState" due to: 42P01: relation "asset_health."AssetHealthState"" does not exist

Code of Conduct

  • I agree to follow this project's Code of Conduct
@33Moka33 33Moka33 added bug Something isn't working triage issues to be triaged labels Sep 16, 2024
@JerryNixon
Copy link
Contributor

Do square brackets work?

{
   "object": "asset_health.[AssetHealthState]"
}

@33Moka33
Copy link
Author

with brackets i get this error
fail: Azure.DataApiBuilder.Core.Resolvers.IQueryExecutor[0]
Query execution error due to:
42P01: relation "asset_health.assethealthstate" does not exist
Npgsql.PostgresException (0x80004005): 42P01: relation "asset_health.assethealthstate" does not exist

all seems to be converted to lower case

@JerryNixon JerryNixon added the pgsql an issue thats specific to pgsql label Sep 23, 2024
@thomasfroehle thomasfroehle linked a pull request Nov 24, 2024 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pgsql an issue thats specific to pgsql triage issues to be triaged
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants