[GRASS5] odbc interface with postgres - db.tables error

sixote alin sixote at yahoo.com
Sun Nov 11 08:33:58 EST 2001


Hi
I can run other db.* modules with odbc-postgresql
driver, except for
db.tables that gets "dbmi: Protocol error" message and
terminates.

unlike other db.* modules, f.e. db.columns, which also
call macro 
DB_RECV_RETURN_CODE and it returns DB_OK to them,
db_list_tables
calls the following macro chain (line 14,
c_list_tabs.c):

DB_START_PROCEDURE_CALL(DB_PROC_LIST_TABLES);

that either should return error or pass through; so it
does the second,
but later the call to db__recv_int would invoke
db_protocol_error().

As far as I traced the calls from grass to rpc libs,
those were:

db.tables --> db_list_tables -> DB_RECV_RETURN_CODE
-->
--> db__recv_return_code --> DB_RECV_INT -->
db__recv_int --> xdr_begin_recv -->
--> xdrstdio_create

Used sources from CVS Nov.9, Linux RH 7.1/postgresql
-7.1.3

--alex

__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com



More information about the grass-dev mailing list