Commit Graph

138 Commits

Author SHA1 Message Date
57db60d4db Bunp version number. New version is 0.9.54 2020-01-27 06:03:14 +01:00
26fa254e11 Fix for CONPY-35:
Since we can't reset internal members of statement handle (MYSQL_STMT *), we
need to close and reinitialize statement handle in case a different statement
will be executed with same cursor.
v0.9.53
2020-01-25 10:33:00 +01:00
db39c478a3 Fix for CONPY-38:
Fixed documentation: The default mode for scrolling is relative, not
absolute
2020-01-25 08:38:04 +01:00
b29f042047 Fix for COMPY-39:
If pool_name wasn't specified, the initialization of ConnectionPool() failed.
We now check if pool_name wasn't provided and return an exception.
2020-01-25 08:30:45 +01:00
ad8504212e Fix for CONPY-34:
We now throw an error if a Python object cannot be converted to the corresponding
MariaDB type instead of serializing it.
This means that Python objects that do not have a corresponding MariaDB server
type must be serialized in the application.
2020-01-24 15:20:31 +01:00
a0f8152f4d Fix for CONPY-36:
correct name of parameter should be unix_socket instead of socket.
2020-01-24 14:52:39 +01:00
2b4e58d024 Fix for CONPY-37:
Corrected option name: namedTuple should be named_tuple
2020-01-24 14:36:51 +01:00
62e2075d4b CONPY-33: Connector/Python segfault on autocompletion
Fixed return value of MrdbConnection.getdb (return None, if
no default database was selected).
2020-01-21 04:00:44 +01:00
b992fb5228 Fixed benchmarks for travis 2020-01-13 08:31:09 +01:00
99766699cf Fixed fetch benchmarks 2020-01-13 05:35:50 +00:00
c2adf0b528 Benchmark modifications 2020-01-13 03:33:41 +01:00
a5bdf2a0b4 Make code more PEP-7 compliant 2020-01-07 05:03:16 +01:00
88dc74846f Added benchmark for bulk (insert/update/delete) 2020-01-04 17:07:52 +01:00
98c394c344 Bumped version number 2020-01-04 17:07:33 +01:00
ad07e971b8 Build fixes v0.9.52 2019-12-18 15:10:54 +01:00
d79334b5a7 Skip ed25519 test if server can't load plugin 2019-12-17 17:38:00 +01:00
9d9fd45f3c Reverted previous fix and fixed getter test in test_pooling.
The previous fix in conf_test.py failed in travis benchmarks
2019-12-17 16:39:20 +01:00
52cf0d836a Disable test for miniconda 2019-12-17 15:02:47 +01:00
3e3d772654 Skip pooling test for PyPy 2019-12-17 13:53:37 +01:00
c906544bed Fix test_pooling: set configuration for pool_reset_connection to False,
if environment variable TEST_RESET_SESSION is not present.
removed unused doc variable
2019-12-17 13:23:21 +01:00
811a204a44 [misc] changing to not using connection parameter 'pool_reset_connection' for benchmark 2019-12-16 15:56:33 +01:00
79816efe27 Merge pull request #13 from mariadb-corporation/reset
[misc] permit "pool_reset_connection" option on connection level to
2019-12-16 12:17:29 +01:00
267972418a [misc] permit "pool_reset_connection" option on connection level to
permit implicit pool creation with option

Travis test correction, disabling pool_reset_connection on not supported
servers
2019-12-16 11:54:40 +01:00
3acd93137c Merge branch 'master' of https://github.com/mariadb-corporation/mariadb-connector-python 2019-12-16 11:36:40 +01:00
974410dd1c Saving files before refreshing line endings 2019-12-16 11:35:35 +01:00
55963c6071 Windows fixes:
- fixed build (malloc.h needs to be included for alloca)
- fixed failing test (using lowercase db name)
2019-12-16 09:13:23 +01:00
cd02ca691b Pushed patch number 2019-12-16 06:57:37 +01:00
1b439e12f7 Fixed failing change_user_test 2019-12-16 06:34:03 +01:00
ca8d4d637e Protect deallocation of pool by mutexes 2019-12-09 08:26:41 +01:00
a8e1375d43 Documentation fixes 2019-12-09 08:24:25 +01:00
6c964c49ae Fix ed25519 test: Speficy the default database in grant command 2019-12-06 17:39:28 +01:00
379ea6a0fc Fix for test_change_user 2019-12-06 07:51:31 +01:00
0c64102a78 Revert "Fix for change_user test"
This reverts commit 0272692b27.
2019-12-06 07:50:46 +01:00
0272692b27 Fix for change_user test 2019-12-06 07:17:59 +01:00
7ecf9be8ca Fix connection_exception test 2019-12-05 18:25:06 +01:00
8138eb9ebf test fixes 2019-12-05 11:05:13 +01:00
d657db84af Fixed error, introduced by last pull request:
If connection fails, we need to check for error code of MYSQL handle,
not for MYSQL_STMT.
2019-12-05 09:37:07 +01:00
8f123baaf3 Merge pull request #10 from rusher/tests
[misc] various change
2019-12-05 09:29:16 +01:00
675223744b Build fixes for MacOSX 2019-12-04 17:11:37 +01:00
6c8fec31f5 Merge branch 'master' into tests 2019-12-04 15:48:47 +01:00
2d9e8064fa Merge pull request #12 from MariaDB/plugin_dir
[misc] set plugin path at compile time
2019-12-04 10:48:31 +01:00
8bf252408c [misc] set plugin path at compile time
- connection plugin_dir possible parameter
- correction for error occurring in connection initialization
2019-12-04 10:43:12 +01:00
13aa2178d9 Read plugin directory from mariadb_config. 2019-12-04 08:40:16 +01:00
e218d19060 CONPY-31: Implement callproc method
Input/Output or Output parameters have to be retrieved by .fetch methods,
  the .sp_outparams attribute indicates if the result set contains output
  parameters.
2019-12-03 20:18:38 +01:00
a12b42e820 Merge branch 'master' of https://github.com/MariaDB/mariadb-connector-python 2019-12-01 07:23:46 +01:00
64f02a1161 Added documentation for ConnectionPool class 2019-12-01 07:22:06 +01:00
3b02464b63 Fixes for class ConnectionPool()
- added mutexes for thread safety
- when calling get_connection thread pool will now not return the next
  free connection, but the connection that was not used the longest time.
2019-12-01 05:47:19 +01:00
a169c3949d [misc] various change
- correct tests according to server/maxscale, and multiple python version
  - Cpython (3.6.0, 3.8.0) pypy (3.6-7.2.0), miniconda3-4.3.30
- add scroll test
- benchmark added to test suite. See benchmarks/README.md for info
- cursor.scroll now permit position 0 when using absolute mode
- return Cursor.rownumber None if no result-set, not 0
- exception missing type sqlstate and according tests
2019-11-29 12:13:05 +01:00
d207566c68 Added first documentation version 2019-11-29 10:06:42 +01:00
7ad50e0089 Merge branch 'master' of https://github.com/MariaDB/mariadb-connector-python 2019-11-29 10:05:51 +01:00