44f892fddc
This should solve #1954 and adds some tests for it. I will note I'm not 100% clear on whether there are other edge cases that should be covered here. From what I understand the only standard SQL way to escape single quotes is to double them, which shouldn't cause any problems with this, but if some SQL flavors allow other kinds of escaping, for instance, that would probably need to be covered too for ideal results. Co-authored-by: Hlín Önnudóttir <hlin@nanitor.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Reviewed-on: xorm/xorm#1955 Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: antialiasis <antialiasis@noreply.gitea.io> Co-committed-by: antialiasis <antialiasis@noreply.gitea.io> |
||
---|---|---|
.. | ||
dialect.go | ||
driver.go | ||
filter_test.go | ||
filter.go | ||
gen_reserved.sh | ||
mssql_test.go | ||
mssql.go | ||
mysql.go | ||
oracle_test.go | ||
oracle.go | ||
pg_reserved.txt | ||
postgres_test.go | ||
postgres.go | ||
quote.go | ||
sqlite3_test.go | ||
sqlite3.go | ||
table_name_test.go | ||
table_name.go | ||
time.go |