Re: : Strange things with VB6 in adUseServer mode

Поиск
Список
Период
Сортировка
От Thomas Chabaud
Тема Re: : Strange things with VB6 in adUseServer mode
Дата
Msg-id 4379A0A9.1070001@geosys.com
обсуждение исходный текст
Ответ на : Strange things with VB6 in adUseServer mode  (Thomas Chabaud <tc@geosys.com>)
Список pgsql-odbc
Thomas Chabaud a écrit :
> Hello.
>
> I'm using PostgreSQL ODBC Driver v08.01.0100 with Visual Basic 6
> applications.
> When I try an AddNew on a recordset with the following code :
>
> Dim rs As ADODB.Recordset
> Set rs = New ADODB.Recordset
> rs.Open "tRepertoiresParcellaires", dbConn,adOpenKeyset, _
> adLockPessimistic, adCmdTableDirect
>
> rs.AddNew
> rs("myfield").value = "myvalue"
>
> I have always the same error :
> "-2147467259 Error while executing the query;
> ERROR:  null value in column "mycolumn" violates not-null constraint"
>
> [...]

I solve the problem by using adCmdTable, it seems to work in this mode.

Thomas


В списке pgsql-odbc по дате отправления:

Предыдущее
От: "Dave Page"
Дата:
Сообщение: Re: OSX ?
Следующее
От: "Marian Naghen"
Дата:
Сообщение: ODBC pessimistic lock