self.wrkArea
このような変数の値を持つシンボルを追加する必要があります
(select chr(182) from dual) || self.wrkArea || (select chr(182) from dual)
つまり¶workarea¶
、結果になります。次のクエリでこれを置き換える方法は?
cursor.execute("""insert into MDP_ERR_MASTER (MARKERID, FILENAME, ERRORCODE, USERID, CHECKEDBY, CHECKEDDT, STATUS, COMMENTS, X1, Y1, Z1, X2, Y2, Z2, RECNO, PROJECT_CODE, SRC_ACC_NUM, WORKAREA, CONFIGID, ELEMENTID)
values (:markerid,:shapename,:errcode,'0',:sysid,sysdate,'OPEN',:usercomment,:x1,:y1,0,:x2,:y2,0,1,:jobno,:srcacnum,:workarea,0,0)""",
{"markerid" : markerId,
"shapename" : str(errorMarkerLayer.name()),
"errcode" : errCode ,
"sysid" : self.sysid ,
"usercomment" : str(comments),
"x1" : startPnt[0],
"y1" : startPnt[1],
"x2" : endPnt[0],
"y2" : endPnt[1],
"jobno" : self.jobNo,
"srcacnum" : src_AcNum,
"workarea" : self.wrkArea
})