[python-sybase] Errors and warnings
Marcos Sánchez Provencio
msanchez at grupoburke.com
Tue, 10 Aug 2004 10:46:42 +0200
--=-dpRj6W51nxZ6ZirrZmex
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
Is it possible to tell errors form warnings when working with SQL
Server? There are some warnings (eg null value eliminated from
aggregate) that I want to ignore. This could be based on the severity
level of the message. Something like:
def _servermsg_cb(ctx, conn, msg):
#if msg.msgnumber not in (5701, 5703):
if msg.severity:
raise DatabaseError(_fmt_server(msg))
If not, it is not possible to execute 'sp_help mytable' on a table that
has no views. It is funny that the program never ends, it hangs.
--=-dpRj6W51nxZ6ZirrZmex
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada
digitalmente
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQBBGItvTwXdxLmtmxsRAogRAJ9e5WMnufnFwi1OGCbz2dizSAX0rgCdG5sF
2gDgvESTCCBIbsAhzHMm0wE=
=Xb5Q
-----END PGP SIGNATURE-----
--=-dpRj6W51nxZ6ZirrZmex--