Problem with updatesql
Posted: 15.07.2008, 10:41
hi
i have an error when i make this update code
DM_Sync.Update_Sec.Params[0].Value := 'ttttttt' ;
DM_Sync.Update_Sec.Params[1].Value := 'ttttttttttt' ;
DM_Sync.Update_Sec.Params[2].Value := 'ttttttttt' ;
DM_Sync.Update_Sec.Params[3].Value := 'ttttttt' ;
DM_Sync.Update_Sec.Params[4].Value := 'tttt' ;
DM_Sync.Update_Sec.Params[5].Value := 'ttttttttt' ;
DM_Sync.Update_Sec.Params[6].Value := 1 ;
DM_Sync.Update_Sec.Params[7].Value := 1 ;
DM_Sync.Update_Sec.Params[8].Value := now ;
DM_Sync.Update_Sec.Params[9].Value := 1 ;
DM_Sync.Update_Sec.Params[10].Value := 0 ;
DM_Sync.Update_Sec.Params[11].Value := 0 ;
DM_Sync.Update_Sec.Params[12].Value := 'tt' ;
DM_Sync.Update_Sec.Params[13].Value := 19 ;
DM_Sync.Query_Sec.Open ;
DM_Sync.Query_Sec.Edit ;
DM_Sync.Query_Sec.ApplyUpdates ;
and i got the error
Field check_out_time cannot be null
and its have a value
DM_Sync.Update_Sec.Params[8].Value := now ;
the previous code working normal on local mysql sever
but when connect to server its give the error
note
ZConnection1.AutoCommit = False
any body know how to solve this problem
i have an error when i make this update code
DM_Sync.Update_Sec.Params[0].Value := 'ttttttt' ;
DM_Sync.Update_Sec.Params[1].Value := 'ttttttttttt' ;
DM_Sync.Update_Sec.Params[2].Value := 'ttttttttt' ;
DM_Sync.Update_Sec.Params[3].Value := 'ttttttt' ;
DM_Sync.Update_Sec.Params[4].Value := 'tttt' ;
DM_Sync.Update_Sec.Params[5].Value := 'ttttttttt' ;
DM_Sync.Update_Sec.Params[6].Value := 1 ;
DM_Sync.Update_Sec.Params[7].Value := 1 ;
DM_Sync.Update_Sec.Params[8].Value := now ;
DM_Sync.Update_Sec.Params[9].Value := 1 ;
DM_Sync.Update_Sec.Params[10].Value := 0 ;
DM_Sync.Update_Sec.Params[11].Value := 0 ;
DM_Sync.Update_Sec.Params[12].Value := 'tt' ;
DM_Sync.Update_Sec.Params[13].Value := 19 ;
DM_Sync.Query_Sec.Open ;
DM_Sync.Query_Sec.Edit ;
DM_Sync.Query_Sec.ApplyUpdates ;
and i got the error
Field check_out_time cannot be null
and its have a value
DM_Sync.Update_Sec.Params[8].Value := now ;
the previous code working normal on local mysql sever
but when connect to server its give the error
note
ZConnection1.AutoCommit = False
any body know how to solve this problem