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

Table Insert with from wrong table in supabase do not produce error #1269

Open
Ejayz opened this issue Sep 10, 2024 · 0 comments
Open

Table Insert with from wrong table in supabase do not produce error #1269

Ejayz opened this issue Sep 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Ejayz
Copy link

Ejayz commented Sep 10, 2024

Bug report

  • [ /] I confirm this is a bug with Supabase, not with my own application.
  • [/ ] I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

const { data, error } = await supabase.from("tbl_transaction").insert({
 }).select();

apparantly if your table on from() method is incorrect when inserting data wont return any error . is this by design or bug ? thank you .

lets say instead of tbl_transaction you put transaction_table then it will just show error: {} as return for error and null for data .

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Try creating a record with supabase insert with wrong table name.

Expected behavior

It should return an error for wrong table name inserted .

Screenshots

If applicable, add screenshots to help explain your problem.

System information

  • OS:Windows 10
  • Browser (if applies) Chrome
  • Version of supabase-js: 2.45.2
  • Version of Node.js:v20.17.0

Additional context

Add any other context about the problem here.

@Ejayz Ejayz added the bug Something isn't working label Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant