if( call.getInt(1) != 0 )
int res = call.getInt(1); try { call.close(); } catch( Exception e ) {}  if( res != 0 )
	public error write( short res, String msg ) throws null_error, db_error, except { try {		CallableStatement call = con.prepareCall( "{ ? = call log_write(?, ?, ?, ?, ?, ?) }" );		int idx=1;		call.registerOutParameter(idx++, Types.INTEGER);		call.setString(idx++, ip);		call.setShort(idx++, ser);		call.setString(idx++, dom);		call.setString(idx++, log);		call.setShort(idx++, res);		call.setString(idx++, msg);		call.execute();		if( call.getInt(1) != 0 )			return lr(err_code.err_func_res, "LOG_WRITE");				return lr(err_code.err_no, "");	} catch( SQLException e ) {		throw new db_error(e.getMessage(), getClass().getName(), 0);	} catch( NullPointerException e ) {		throw new null_error(e.getMessage(), getClass().getName(), 0);	} catch( Exception e ) {		throw new except(e.getMessage(), getClass().getName(), 0);	} }