Could anyone help me understand why my `$queryRaw`...
# orm-help
d
Could anyone help me understand why my
$queryRaw
does not work?
Copy code
code: 'P2010',
  clientVersion: '4.3.1',
  meta: { code: 'N/A', message: 'N/A' },
I just get N/A for code/message
👀 1
v
👋 Hi @Dan Calise thank you for raising this question, my team mates @Nurul and @Raphael Etim will check it asap! In the meantime, can you tell us a little more about your use case? (e.g. is it a personal / work project, is it in prod). It'll help us frame our answers!
If this is related to this question I assume the stack is Next.js and an SQLite database.
n
Hello @Dan Calise 👋 Could you please share the raw query which you are invoking so that I can try to replicate it locally? And also please let us know the Prisma version that you are using.
v
👋 Hi @Dan Calise did you have a chance to check Nurul's question? Let us know if you still need help here!
d
Hi sorry, I never saw this. It’s really any simple raw query.. her was one
Copy code
const league = await prisma.$queryRaw(
      Prisma.sql`SELECT DatabaseCreationDate FROM LeagueGeneral`
    );
i tried without Prisma.sql as well
version 4.5.0
n
@Dan Calise Can you share the LeagueGeneral model? I would need that to simulate this query.
d
i trimmed it down but here you go
Copy code
model LeagueGeneral {
  LeagueYearOutput          Int
  OutputName                String @id
  OutputFileFormat          String
  LeagueOwner               String
  DatabaseCreationDate      String
}
it’s a table with one single row. for the record I don’t own the database .. the schema is designed by some other developer and I cant make changes to it