Andrea Gabellini <[EMAIL PROTECTED]> wrote:
> looking at the code, the server return SQL_DOWN if there is any type of error.
> 
> Errors like "ORA-01401: inserted value too large for column" are set by the 
> Oracle server, so the server is up and running.
> 
> In this situation it's not a good idea to reconnect the socket.

  Excellent.

> Performing some tests, I found two specific errors that mean "database 
> down": ORA-03113 and ORA-03114.
> 
> So I wrote a new function, sql_check_error (like the mysql one), that 
> checks the error code and return SQL_DOWN or -1.
> 
> I don't know if this solve the bug, but surely it manages better the query.

  OK.  If you can submit this patch to bugs.freeradius.org, into #128,
that would help.

  Alan DeKok.


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to