Alarming error output sql
See original GitHub issueApologies, I am probably doing something horribly wrong. Inserts are failing with
code: 'ER_PARSE_ERROR',
errno: 1064,
sqlState: '42000',
sqlMessage: "You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1",
Confused, I pasted the code into an SQL editor, and found that syntax highlighting was also broken. It breaks
'<p>Omie,</p><p>We aren\\'t in contact
^^
here
And the problem becomes obvious! Single quotes are being escaped like \\'
, when really they ought to be like ''
.
I’m unclear where this escaping code is even coming from. I did a search for escape and found nothing. Interestingly, Connection.escape(value: any): string
is also escaping in a faulty way:
'<p>Omie,</p><p>We aren\'t in contact
So it’s pretty unclear to me if this issue is coming from kysely or mysql2. I was hoping you could provide some insight.
Some other things
- Regardless of the source of the problem, it’s very concerning. Will a deliberate, more sophisticated attack be handled?
- I can’t escape manually, I tried and it just results in exponential
\\\\\\\\\
Issue Analytics
- State:
- Created a year ago
- Comments:15 (9 by maintainers)
Top Results From Across the Web
High Severity Error Log Message alarm
The Error Log - High Severity Error Log Message alarm becomes active when Spotlight Enterprise detects a new error message that ... SQL...
Read more >Reporting and alerting on job failure in SQL Server
It is possible for a job to fail without any steps executing. This can be caused by a configuration error, a permissions problem,...
Read more >SQL Server instance alarms - Spotlight Cloud Help
List the alarms that can be raised against the SQL Server instance connection.
Read more >Create an Alert Using an Error Number - SQL Server Agent
To create an alert using an error number · In Object Explorer, connect to an instance of Database Engine. · On the Standard...
Read more >SQL Server error logging from a Stored Procedure
Logs to both Windows Application log and the SQL error log. ... it may trip an alarm on an application issue, instead of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
There’s no way or need to do that. Thanks for the offer though 😊
Thank you! Sorry for that whole roller coaster. Is there some way I could buy you a coffee?