def run_test_082(self): try: conn = IfxPy.connect(config.ConnStr, config.user, "z") print("??? No way.") except: err = IfxPy.conn_error() print(err)
def run_test_081(self): try: conn = IfxPy.connect(config.ConnStr, "y", config.password) print "??? No way." except: print IfxPy.conn_error() #if conn: # print "??? No way." #else: # err = IfxPy.conn_error # print err #__END__ #__IDS_EXPECTED__ #28000
def run_test_071(self): conn = IfxPy.connect(config.ConnStr, config.user, config.password) if conn: rc = IfxPy.close(conn) if (rc == True): print "IfxPy.close succeeded" else: print "IfxPy.close FAILED\n" else: print "%s" % IfxPy.conn_errormsg() print ",sqlstate=%s" % IfxPy.conn_error() print "%s" % IfxPy.conn_errormsg() print "%s" % IfxPy.conn_errormsg() print "%s" % IfxPy.conn_errormsg() print "%s" % IfxPy.conn_errormsg()