Hi all,
I'm both a newbie programmer and a newbie GRASS60 user. I'm trying to open a cursor with the db_open_insert_cursor function in the next way:
db_open_insert_cursor (driver, cursor);
Before that, I've initialized the cursor:
db_init_cursor (cursor);
set the cursor's type:
db_set_cursor_type_insert (cursor);
and set the driver by default.
And using GDB, I get the next message:
dbmi: db_open_insert_cursor() not implemented
Where is my mistake? If there is no error, what's happening?
Thank you all,
Roberto.
Ps: Did I write my massege in the correct list? I hope so.
--
Roberto Antolin Sanchez
Politecnico di Milano – Polo Regionale di Como
Via Valleggio, 11 – 22100 Como, Italy
tel: +39 031 3327533
email: roberto.antolin@polimi.it
The functions db_init_cursor, db_set_cursor_type_insert etc.
are not implemented in db drivers and SQL commands
are executed by db_execute_immediate.
It is certainly desirable to implement that functions and avoid
SQL command strings passed to drivers. It can improve performance
and resolve possible problems with floating points in some drivers.
Radim
On 1/27/06, Roberto Antolin <roberto@geomatica.como.polimi.it> wrote:
Hi all,
I'm both a newbie programmer and a newbie GRASS60 user. I'm trying to
open a cursor with the db_open_insert_cursor function in the next way:
db_open_insert_cursor (driver, cursor);
Before that, I've initialized the cursor:
db_init_cursor (cursor);
set the cursor's type:
db_set_cursor_type_insert (cursor);
and set the driver by default.
And using GDB, I get the next message:
dbmi: db_open_insert_cursor() not implemented
Where is my mistake? If there is no error, what's happening?
Thank you all,
Roberto.
Ps: Did I write my massege in the correct list? I hope so.
--
Roberto Antolin Sanchez
Politecnico di Milano – Polo Regionale di Como
Via Valleggio, 11 – 22100 Como, Italy
tel: +39 031 3327533
email: roberto.antolin@polimi.it
_______________________________________________
grass5 mailing list
grass5@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass5