Mr.Rao,
error when inserting a new record, when primary key is numeric
table structure:
CREATE TABLE `admd0013` (
`CODGRU` INT (3) NOT NULL AUTO_INCREMENT,
`NOMGRU` VARCHAR (30) NULL DEFAULT NULL,
`ALTERA` DATE NULL DEFAULT NULL,
PRIMARY KEY (`CODGRU`)
)
oGrupos := oDB:Query( 'select * from ADMD0013 where CODGRU = ?',{0} )
...
oGrupos:ReQuery({27})
...
oGrupos: Append ()
oGrupos: NOMGRU: = cNOMGRU
oGrupos: ALTERA: = date ()
oGrupos: save () << error happens here
...
Error:
Application
===========
Path and name: F: \ Systems \ WinADMplus \ WinADM.exe (32-bit)
Size: ********* bytes
Compiler version: Harbor 3.2.0dev (r1801051438)
FiveWin version: FWH 18.02
C compiler version: Borland / Embarcadero C ++ 7.0 (32-bit)
Windows version: 6.1, Build 7601 Service Pack 1
Time from start: 0 hours 1 mins 10 secs
Error occurred at: 03/16/2018, 11:50:09
Error description: BASE error / 1132 Bound error: array access
Args:
[1] = A {...} length: 1
[2] = N 2
Stack Calls
===========
Called from:. \ Source \ internal \ FWMARIA.PRG => FWMARIAROWSET: PRIMARYVAL (2339)
Called from:. \ Source \ internal \ FWMARIA.PRG => FWMARIAROWSET: REQUERY (3114)
Called from:. \ Source \ internal \ FWMARIA.PRG => FWMARIAROWSET: RESYNC (3407)
Called from:. \ Source \ internal \ FWMARIA.PRG => FWMARIAROWSET: SAVE (3902)
Called from: ADMP1190.PRG => SAVE (172)