Update customer_transaction.php#12867
Conversation
|
Why? There's nothing wrong with this DB query! |
By the way, this is a rare case when I will support this committee. I'll explain in more detail... As I can see from other commits, work has begun on adding quotes to SQL query table names. It's useful to have some kind of standard for source code. And since such work began in previous commits, it makes sense to bring it to the end and enclose ALL table names in queries in quotes. |
|
Are we talking about single quotes ' or backticks ` ? |
Backticks. I think it will likely break compatibility with other database engines, e.g. PostgreSQL or PDO, see for example https://wiki.postgresql.org/wiki/Things_to_find_out_about_when_moving_from_MySQL_to_PostgreSQL . MySQL uses '`' (accent mark or backtick) to quote system identifiers, which is decidedly non-standard. Better to stick with ANSI standards where possible. |
|
Do not abuse the trust of the maintainer. That's why there are many complaints. Yes, the project is managed by Daniel and if he is satisfied with this state of affairs, other programmers will not be able to do anything and complaints to GitHub will not help. But constantly ignoring the complaints of other programmers can lead to the fact that only Daniel and you will remain among the contributors, and maybe sometimes random assistants will appear... |
By the way, I also had a question about this for a long time... |
|
Even if non-standard backticks were needed, this pull request only quotes the c alias, misses the other ct and cgd aliases. Maybe they are they going to be done is separate pull requests. |
|
@ADDCreative : I have now added an issue (see #12869) because we need to decide whether the other DB engines are ever to be supported. All the recently added backticks have made this highly unlikely, so we might as well drop support for e.g. PostgrSQL, or rewrite the majority of the model classes. |
Nobody's ignoring anything here. The only reason why you might believe being the case are due to the countless replies I had to put in the past where those replies were, then, and still, ignored by others. That's the choices they've made and the route they have chosen to be into - themselves. If I wouldn't believe on the Opencart evolution, I simply wouldn't dedicate my time to it. |
|
backticks are required as some the field names use restricted workds. |
No description provided.