Hello,

I've implemented a control that works with a database oracle, with dataset
and dataadapter. It works fine, inserts, delete, and update works fine when
the sentence is like "update table set a=:1,b:1", but when the update is
"update table set a=:1,b=:2 where c=:1", it says "Concurrency Infraction:
Update Command affected 0 register" or "ORA-01722: Incorrect number".

It makes the sentence dynamically the code is:

If txt.isPrimaryKey Or txt.ConcurrencyField Then

If Not primerw Then

where &= " AND "

Else

primerw = False

End If

where &= txt.FieldName & " =:" & txt.FieldName

Else

If Not primerc Then

strupdate &= ","

Else

primerc = False

End If

strupdate &= txt.FieldName & "=:" & txt.FieldName

End If

If param Is Nothing Then

ReDim param(0)

Else

ReDim Preserve param(param.Length)

End If

param(nparams) = New OracleParameter

param(nparams).ParameterName = ":" & txt.FieldName

param(nparams).OracleDbType = txt.FieldType

param(nparams).SourceColumn = txt.FieldName

If txt.isPrimaryKey Or txt.ConcurrencyField Then

param(nparams).SourceVersion = DataRowVersion.Original

Else

param(nparams).SourceVersion = DataRowVersion.Current

End If

nparams += 1


Thanks in advance

Silvia.