[OAuth] Error inserting into a table with references
See original GitHub issueContext
There seems to be a problem with OAuth roles/grants and referenced tables.
Steps to Reproduce
- Request an OAuth token with
schemas:c
scope - Create a table with SQL API:
CREATE TABLE foreign_table(id integer PRIMARY KEY)
- Insert a value:
INSERT INTO foreign_table(id) VALUES (1)
- Create another table with a reference:
CREATE TABLE final_table(id integer references foreign_table(id) ON DELETE CASCADE, name text);
- Insert a value:
INSERT INTO final_table(id, name) VALUES (1, 'tal')
Current Result
permission denied for schema X
Expected result
It should insert the value
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
INSERT Statement error message references column I am not ...
Cannot insert the value NULL into column 'Artist', table 'DB1.dbo.SpotArtSong'; column does not allow nulls. INSERT fails. The statement has ...
Read more >Unable to insert into table where column is a foreign key
The brandId column has a foreign key constraint on it that links it to the id of another table. the table I am...
Read more >RFC 6749: The OAuth 2.0 Authorization Framework
This specification replaces and obsoletes the OAuth 1.0 protocol described in RFC 5849. Status of This Memo This is an Internet Standards Track...
Read more >INSERT | Databricks on AWS
Inserts new rows into a table and optionally truncates the table or partitions. You specify the inserted rows by value expressions or the...
Read more >INSERT (multi-table) - Snowflake Documentation
Specifies that each row executes every INTO clause in the INSERT statement. ... If the FIRST keyword is specified in an unconditional multi-table...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Let’s keep it open. It’s in the backend kanban so it’ll be fixed eventually.
Closing in favor of https://app.clubhouse.io/cartoteam/story/83499/oauth-error-inserting-into-a-table-with-references