You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use a table called "user" which is a reserved keyword in PostgreSQL. So we have to quote it. For Doctrine the table name is "user". When using Auditor to audit the user table, it builds a table name for the audit table, but does not remove the quotes. So the table name is invalid.
I am not sure how SQLite and MySQL handle this, so it could be an edge case.
Current behavior
No insert happens on audited and audit table. No error is reported.
How to reproduce
Audit a table called "user" in PostgreSQL.
Possibly any reserved word of the database vendor. Haven't tried that.
Expected behavior
Auditor builds a valid table name for reserved keywords or at least an error is reported.
Alternative solution
If the change to generate a "valid" audit table name is too complex, a possible solution could be to provide a configuration option to manually specify an audit table name.
The text was updated successfully, but these errors were encountered:
auditor
versionSummary
We use a table called "user" which is a reserved keyword in PostgreSQL. So we have to quote it. For Doctrine the table name is
"user"
. When using Auditor to audit the user table, it builds a table name for the audit table, but does not remove the quotes. So the table name is invalid.I am not sure how SQLite and MySQL handle this, so it could be an edge case.
Current behavior
No insert happens on audited and audit table. No error is reported.
How to reproduce
Audit a table called
"user"
in PostgreSQL.Possibly any reserved word of the database vendor. Haven't tried that.
Expected behavior
Auditor builds a valid table name for reserved keywords or at least an error is reported.
Alternative solution
If the change to generate a "valid" audit table name is too complex, a possible solution could be to provide a configuration option to manually specify an audit table name.
The text was updated successfully, but these errors were encountered: