question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[OAuth] Error inserting into a table with references

See original GitHub issue

Context

There seems to be a problem with OAuth roles/grants and referenced tables.

Steps to Reproduce

  1. Request an OAuth token with schemas:c scope
  2. Create a table with SQL API: CREATE TABLE foreign_table(id integer PRIMARY KEY)
  3. Insert a value: INSERT INTO foreign_table(id) VALUES (1)
  4. Create another table with a reference: CREATE TABLE final_table(id integer references foreign_table(id) ON DELETE CASCADE, name text);
  5. 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:closed
  • Created 4 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
alrocarcommented, Nov 18, 2019

Let’s keep it open. It’s in the backend kanban so it’ll be fixed eventually.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found