Python driver can not connect Cubrid driver:
connect url:
{noformat}
02. Connection with autocommit property
E
05. Connection with alhost
CUBRID:localhost:33188:demodb:dba::?althosts=10.34.64.212autocommit=false
E
04. Connection with other computer
CUBRID:10.34.64.212:33188:demodb:dba::?autocommit=false
E
{noformat}
Test result:
{noformat}
ERROR: test_connect_withautocommit (__main__.CUBRIDPythonDBITest)
----------------------------------------------------------------------
Traceback (most recent call last):
File connection.py, line 40, in test_connect_withautocommit
self.con=CUBRIDdb.connect(CUBRID:localhost:33188:pydb:::?autocommit=false)
File /home/python/tools/python265/lib/python2.6/site-packages/CUBRIDdb/__init__.py, line 65, in Connect
return Connection(*args, **kwargs)
File /home/python/tools/python265/lib/python2.6/site-packages/CUBRIDdb/connections.py, line 19, in __init__
self._db = _cubrid.connect(*args, **kwargs)
Error: (-20030, 'ERROR: CCI, -20030, Invalid url string')
======================================================================
ERROR: test_connection_with_alhost (__main__.CUBRIDPythonDBITest)
----------------------------------------------------------------------
Traceback (most recent call last):
File connection.py, line 88, in test_connection_with_alhost
self.con=CUBRIDdb.connect(conStr,dba,)
File /home/python/tools/python265/lib/python2.6/site-packages/CUBRIDdb/__init__.py, line 65, in Connect
return Connection(*args, **kwargs)
File /home/python/tools/python265/lib/python2.6/site-packages/CUBRIDdb/connections.py, line 19, in __init__
self._db = _cubrid.connect(*args, **kwargs)
Error: (-20030, 'ERROR: CCI, -20030, Invalid url string')
======================================================================
ERROR: test_connection_with_ip (__main__.CUBRIDPythonDBITest)
----------------------------------------------------------------------
Traceback (most recent call last):
File connection.py, line 67, in test_connection_with_ip
self.con=CUBRIDdb.connect(conStr,dba,)
File /home/python/tools/python265/lib/python2.6/site-packages/CUBRIDdb/__init__.py, line 65, in Connect
return Connection(*args, **kwargs)
File /home/python/tools/python265/lib/python2.6/site-packages/CUBRIDdb/connections.py, line 19, in __init__
self._db = _cubrid.connect(*args, **kwargs)
Error: (-20030, 'ERROR: CCI, -20030, Invalid url string')
{noformat}
The detail codes see the file attached