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.

Error: [libs\sql-schema-describer\src\lib.rs:171:32] Column id not found in Table videos

See original GitHub issue

Command: prisma db pull Version: 3.2.1 Binary Version: b71d8cb16c4ddc7e3e9821f42fd09b0f82d7934c Report: https://prisma-errors.netlify.app/report/13544 OS: x64 win32 10.0.19043

JS Stacktrace:

Error: [libs\sql-schema-describer\src\lib.rs:171:32] Column id not found in Table videos
    at ChildProcess.<anonymous> (C:\<Jan'sComputer>\9717\node_modules\prisma\build\index.js:43135:28)
    at ChildProcess.emit (events.js:400:28)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)

Rust Stacktrace:

   0: <unknown>
   1: <unknown>
   2: <unknown>
   3: <unknown>
   4: <unknown>
   5: <unknown>
   6: <unknown>
   7: <unknown>
   8: <unknown>
   9: <unknown>
  10: <unknown>
  11: <unknown>
  12: <unknown>
  13: <unknown>
  14: <unknown>
  15: <unknown>
  16: <unknown>
  17: <unknown>
  18: <unknown>
  19: <unknown>
  20: <unknown>
  21: <unknown>
  22: <unknown>
  23: <unknown>
  24: <unknown>
  25: <unknown>
  26: <unknown>
  27: BaseThreadInitThunk
  28: RtlUserThreadStart

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
pimeyscommented, Oct 27, 2021

The weird thing here is if you create a user that does have CREATE privileges to the database, but nothing else (including SELECT), you can SELECT data from information_schema tables, but some of it is not visible for you. Again, querying mysql.user is not allowed because you have no SELECT privileges…

1reaction
pimeyscommented, Oct 27, 2021

The error here is if the user accessing the database doesn’t have SELECT privilege to the database, when introspecting the tables we can get the table names from the database, and the indices, but not the table columns. When selecting the columns we just get an empty list back, so our internal struct will get the primary key id from the indices, but the column list is empty. When later on we try to access the scalar field for a primary key, our model expects the data to be there, unwraps and panics.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Column 'id' not found - java - Stack Overflow
When I running the aplication I get this error = "java.sql.SQLException: Column 'id' not found." Why it is? service: @Override @Transactional ...
Read more >
Solved: Underlying error messageThe column 'ID' of the tab...
Underlying error messageThe column 'ID' of the table wasn't found. I have no idea why I'm getting this error in The Cloud, but...
Read more >
<Column id=XXX> is not found. A total of X object(s) need it ...
This technical note documents an error received when importing a package that contains a table into a different project source in MicroStrategy 9.x...
Read more >
Excel Get Row Id not found - Power Platform Community
I have made sure the key column has only unique values, that the table has a header, and I'm getting the key value...
Read more >
column 'id' not found while using nativequery in hibernate 5.4.14
Sometimes It's being cause if we import data from dump in a database I tried creating new table in new database but it...
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