Esempio n. 1
0
 def run_test_082(self):
     try:
         conn = IfxPy.connect(config.ConnStr, config.user, "z")
         print("??? No way.")
     except:
         err = IfxPy.conn_error()
         print(err)
Esempio n. 2
0
    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
Esempio n. 3
0
 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()