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: syntax error at or near "."

See original GitHub issue

Hello , thanks for the driver 😉

i’m facing a parsing error when trying to query to aurora postgresql serverless :

ERROR: syntax error at or near “.”

the query is :

SELECT DISTINCT `distinctAlias`.`User_id` as "ids_User_id" FROM (SELECT `User`.`id` AS `User_id`, `User`.`email` AS `User_email`....

if i replace “`” by " " " seems to execute correctly, in my test, but not sure how to make it work generally , any help would be welcome

thanks

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
ArsenyYankovskycommented, Oct 28, 2019

Hello, I haven’t really tested the driver against postgres because the use case I started it for was for MySQL. So, currently the postgres is not supported.

It’s a bit of work to make it work for postgres and requires changes in the TypeORM project itself. I can’t promise any timeframe, but I will take a look at it.

0reactions
ArsenyYankovskycommented, Mar 3, 2020

I’m going to track the Postgres work here

Read more comments on GitHub >

github_iconTop Results From Across the Web

Postgresql : syntax error at or near "-" - Stack Overflow
I have reproduced the issue in my system, postgres=# alter user my-sys with password 'pass11'; ERROR: syntax error at or near "-" LINE...
Read more >
SQL Error: "Syntax error at or near:" - Looker Community
This SQL error generally means that somewhere in the query, there is invalid syntax. Some common examples: ... In some circumstances, the database ......
Read more >
syntax error at or near - INSERT - DBA Stack Exchange
syntax error at or near - INSERT · 1. The syntax itself is wrong. · OTOH, using keywords as object names is rarely...
Read more >
Postgre SQL errors – common codes and messages - Paessler
The error message “syntax error at or near 'grant'” is one of the most common PostgreSQL database errors. However, it can easily be...
Read more >
SQL Execution Failed postgres-error: syntax error at or near "\"
What is the current behaviour? SQL Migration Execution Fails when a tab character '\t' is inside the script. Migration execution succeeds when ...
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