Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def testBigIntPymssql(self):
"""Same as testBigInt above but from pymssql. Uses pymssql.output class."""
if sys.version_info >= (3, ):
py_type = int
else:
py_type = long
in_val = 123456789
cursor = self.pymssql.cursor()
retval = cursor.callproc('pymssqlTestBigInt', [in_val, pymssql.output(py_type)])
eq_(in_val, retval[1])
in_val = 2147483647
retval = cursor.callproc('pymssqlTestBigInt', [in_val, pymssql.output(py_type)])
eq_(in_val, retval[1])