Errors and warnings

Marcos Sánchez Provencio <[email protected]>
Newsgroups gmane.comp.python.sybase
Message-ID <[email protected]>
I have changed _servermsg_cb to ignore non-errors, since I was getting a
nasty 

    raise DatabaseError(_fmt_server(msg))
 DatabaseError: Msg 8153, State 1, Procedure usp_VsIntervinientes, Line
74
Warning: Null value eliminated from aggregate.
 

This is the new version:

def _servermsg_cb(ctx, conn, msg):
    print '_servermsg_cb:',msg.severity,msg.line, msg.msgnumber,
msg.proc, msg.severity, msg.state, msg.status, msg.svrname,msg.text
    #if msg.msgnumber not in (5701, 5703):
    if msg.severity:
        raise DatabaseError(_fmt_server(msg))


Is it too permissive?

-- 
Marcos Sánchez Provencio <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.