Hello!

I submit some commands via dbcmd()/dbsqlexec(), which trigger at least 2 messages.

The first call to dbresults() returns, but the second one stalls.

I know it gets the second message, because my msg_handler() is invoked (it prints the message, etc.). The handler returns 0, but the dbresults() stalls. The code looks like this:

Code:
	len = dbresults(dbp);
	dprintf("dbresults(%p) returned %d", dbp, len);
	len = dbresults(dbp);
	dprintf("dbresults(%p) returned %d", dbp, len);
The second dbresults() above hangs...

This is with the libsybdb64, that comes with ASE-12.5.3 on Solaris.

Using FreeTDS on FreeBSD does not have this problem, but I'd like to be portable...

Thanks for any hints!