oracle数据库update的场合,字段名中包含空格的时候,生成的update语句出错 #1756
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
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: xorm/xorm#1756
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?
up是获取的[]map[string]interface{}类型。
"ALLOWONLYBOOK" "_FLAG" = :19 发生错误,后查实,数据库中字段是[ALLOWONLYBOOK _FLAG],下划线那里有空格。
麻烦了
生成的sql
UPDATE "" SET "STANDARDID" = :1, "ALLOWTAKEPLANE" = :2, "HOURSTANDARD_ENABLED" = :3, "TITLE" = :4, "ENDTIME" = :5, "ALLOWGREATERKM_FLAG" = :6, "ALLOWBOOKDISCOUNT_LOW" = :7, "ALLOWBOOKDISCOUNT_HIGH" = :8, "ALLOWTAKEPLANE_FLAG" = :9, "MODIFIER" = :10, "MODIFYTIME" = :11, "SPECIALIDS" = :12, "ALLOWBOOKHIGHEST" = :13, "ALLOWONLYBOOK" "_ENABLED" = :14, "ALLOWBOOKHIGHEST_FLAG" = :15, "CREATER" = :16, "ALLOWGREATERKM" = :17, "ALLOWONLYBOOK" = :18, "ALLOWONLYBOOK" "_FLAG" = :19, "ALLOWBOOKDISCOUNT_FLAG" = :20, "ALLOWBOOKDISCOUNT_ENABLED" = :21, "ID" = :22, "MAPPINGTYPE" = :23, "STARTTIME" = :24, "ALLOWTAKEPLANE_ENABLED" = :25, "CREATETIME" = :26, "HOURSTANDARD_FLAG" = :27, "ALLOWBOOKLOWEST" = :28, "ALLOWBOOKLOWEST_ENABLED" = :29, "DAYSTANDARD_FLAG" = :30, "ALLOWBOOKHIGHEST_ENABLED" = :31, "HOURSTANDARD" = :32, "DAYSTANDARD" = :33, "ALLOWBOOKLOWEST_FLAG" = :34, "STATUS" = :35, "ALLOWGREATERKM_ENABLED" = :36, "DAYSTANDARD_ENABLED" = :37 WHERE (STANDARDID = '1000000') [
Why oracle support a column contains space ?