Closed sp1d3rb0y closed 9 years ago
I'm going to escape all table name on the SQL statements, I think is more practical. Thank you for the clue. Question: For psql I have to escape also column names or just table names? Just to do the work once.
Hi, Column names also have to be escaped, but I think you got it pretty much covered (at least in libs/hTags.php).
Should be fixed now! All tables names are between ticks.
Hi,
First of all, great work you did there.
I'd like to point out the fact that postgresql doesn't handle mixed-case tablenames (such as CamelCase tablenames, 'humanReadable' and 'docTags' in our case) when they are not properly quoted (as you can see here for example); without quotes, everything is lowercased. As a result, your app does not work properly in my case (Owncloud 7 + psql backend), throwing a 'relation oclife_humanreadable does not exist' error. I would kindly suggest you either :
This patch follows the documentation and seemed to do the trick in my case.
Best regards,