problem xorm generate SQL stmt with WHERE when column name is SQL keyword #1324
Labels
No Label
backport/done
backport/v1
blocked
db
oracle
db
sqlserver
duplicate
feature
cache
frontport/done
frontport/main
invalid
kind
breaking
kind
bug
kind
build
kind
dependencies
kind
docs
kind
driver
kind
enhancement
kind
feature
kind
performance
kind
proposal
kind
question
kind
refactor
kind
testing
need
feedback
need
test
proposal:accepted
RaspBerry Pi
regression
skip-changelog
upstream
wip
wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: xorm/xorm#1324
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
xorm生成的SQL语句:
WHERE Index=? AND Platform=?
,Could you give your code here?
@lunny
when I execute code below:
xorm
will generate SQL statement withWHERE
,inWHERE
sub statement,column name don't quoted by (`).Example
when column name is SQL keyword,such as
SELECT
、INDEX
, SQL statement execute with syntax error!How is the
query
's struct's definition?model struct
execute above code, will see from
xrom
debug log:because
Index
is SQL keyword, above SQL statement has syntax error.when use:
xorm
SQL debug log is:it works.
Is this a problem?