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: Undefined binding(s) detected when compiling SELECT when Link Records using API #8810

Open
1 task done
ramisedhom opened this issue Jun 20, 2024 · 0 comments
Open
1 task done
Assignees

Comments

@ramisedhom
Copy link

Please confirm if bug report does NOT exist already ?

  • I confirm there is no existing issue for this

Steps to reproduce ?

  1. Create 2 tables
  2. Link the 2 tables with many-to-many relation
  3. Use API (Link Records)[https://data-apis-v2.nocodb.com/#tag/Table-Records/operation/db-data-table-row-nested-link] request to link 1 record in table1 to record in table2.
curl --location --request POST '/api/v2/tables/table1/links/linked_field_id/records/1' \
--data-raw '[{"id":1}]'
  1. Error:
{
    "msg": "Undefined binding(s) detected when compiling SELECT. Undefined column(s): [nc_os6a___Sheets.id] query: select `nc_os6a___Sheets`.`id`, `nc_os6a___nc_m2m_8_wpfg08ik`.`table1_id` from `nc_os6a___Sheets` left join `nc_os6a___nc_m2m_8_wpfg08ik` on `nc_os6a___nc_m2m_8_wpfg08ik`.`table2_id` = `nc_os6a___Sheets`.`id` and `nc_os6a___nc_m2m_8_wpfg08ik`.`table1_id` = ? where `nc_os6a___Sheets`.`id` in (?)"
}

Desired Behavior

The record in table1 is linked to desired record in table2

Project Details

Node: v20.12.1
Arch: x64
Platform: linux
Docker: true
RootDB: sqlite3
PackageVersion: 0.207.3

Attachments

No response

@ramisedhom ramisedhom changed the title 🐛 Bug: 🐛 Bug: Undefined binding(s) detected when compiling SELECT when Link Records using API Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🏌️ Open
Development

No branches or pull requests

2 participants