Commit Graph

461 Commits

Author SHA1 Message Date
e7441f1e59 Performance optiomizations:
- Result sets
Convert named_tuple and dictinuary result sets directly from netbuffer,
instead to fetch them in tuples and convert it afterwards

- fetch rows()
Use MrdbCursor_fetchrows() c function for fetchmany/fetchall.
2022-10-09 11:15:46 +02:00
afbd4e35f8 fetchall optimzation:
instead to call fetchone() n times, we retrieve everything in
c function fetchall().
2022-10-03 10:39:40 +02:00
37ea27cf86 Fix for CONPY-224:
If a bulk operation is executed and the statement doesn't need to
be reprepared, only array size has to be updated, since setting
the number of parameters (STMT_ATTR_PREBIND_PARAMS) will reset the
statement in Connector/C.
2022-09-22 07:26:46 +02:00
cb238ceabc [misc] adding bulk benchmark 2022-09-21 11:44:19 +02:00
4c75199a75 [misc] MariaDB benchmark common test suite implementation
benchmark precision improved running on one thread only with at least 1000 warmup operations
2022-09-06 11:03:31 +02:00
215d983df0 Fixed test name:
Last commit message was incorrect, issue fixed CONPY-222, not
CONPY-221 (which was already closed).
2022-08-27 07:39:50 +02:00
c3fe1a954e Fix for CONPY-221:
Removed __del__ method from cursors.py to prevent
raisiing if cursor was already properly closed via close()
method.
2022-08-27 07:25:09 +02:00
d18a2405c6 Fix for CONPY-220:
Added _get_socket method (for internal use only)
2022-08-17 14:45:46 +02:00
336bf34119 is_closed was renamed to _closed. 2022-08-13 10:25:11 +02:00
554abdac89 Fixed error message 2022-08-11 11:10:00 +02:00
63369037d1 Bump version to 1.1.5 2022-08-11 08:50:13 +02:00
71614ab159 Merge branch '1.1-status' into 1.1 2022-08-09 16:09:22 +02:00
cdd42743cc Coding style fixes (PEP8)
Fixed various coding style stuff detected by flake8.
Added .pre-commit-config.yaml:
With command pre_commit install a hook for flake8 will be
installed.
2022-08-07 16:47:26 +02:00
a9ad1fcaee First implementation for status callback 2022-08-05 14:41:43 +02:00
3fe0ee06ec Merge pull request #22 from gavindsouza/patch-2
chore: Fix URLs in README
v1.1.4
2022-07-22 10:15:33 +02:00
205b9c2768 CONPY-218: Allow None as data parameter
Allow None as data parameter for cursors execute()
method.
Kudos to  Luciano Barcaro for providing a fix.
2022-07-21 05:46:53 +02:00
5c198acfb3 chore: Fix URLs in README 2022-07-19 17:01:35 +05:30
bd84da35a8 Documentation for reconnect keyword. 2022-07-18 14:03:20 +02:00
17d5aed2dc CONPY-217:
Add reconnect keyword for connection.
2022-07-18 13:55:39 +02:00
c30b597ba9 Fix for CONPY-213
Additionally to the fix for CONPY-214 (which fixed the iterator), we
need to check that converter will not be called with EOF (None).
2022-07-07 13:42:34 +02:00
687ba165cc Documentation fix:
Added note, that executemany() may return a result set
in case a RETURNING clause was specified.
2022-07-07 07:37:29 +02:00
275aaf3ee1 Fix for CONPY-214:
Replace cursor iterator by native python __iter__() method.
2022-07-06 22:57:58 +02:00
c4955f1ab0 Travis: test all supported python versions against 10.8 2022-07-06 22:57:34 +02:00
d61b805a4b Added CAPABILITY constants
Since CLIENT constants can be used to determine both server
and client capabilities we use now CAPABILITY constants
instead.

CLIENT constants were marked as deprecated in documentation
and will be removed in 2.0 release
2022-07-04 14:45:25 +02:00
6ddd1866d2 Fix typo 2022-07-04 14:45:17 +02:00
1adbefbd61 bump version to 1.1.4 2022-07-04 14:23:06 +02:00
09e5cad2c0 Fix for CONPY-212
The default settiing for buffered in cursors.execute() method has
to be None:
- if not specified, it will use cursor defaults
- if specified, the default behavior of cursor will be changed
v1.1.3
2022-06-29 15:09:20 +02:00
ba56c73a34 CONPY-209:
When executing cursor in text protocol, the substitution of
parameters with mb chars didn't set the correct length.
2022-06-29 12:29:38 +02:00
4b66b6349f Fixed script for ERR constants generation. 2022-06-29 12:06:43 +02:00
9dbc45d91a Bump version (1.1.3) 2022-06-28 07:23:35 +02:00
1cec2f5bf5 Travis:
disable Mac Build until it is fixed
2022-06-28 07:23:00 +02:00
25491f609b Move MySQL servers to allow_failure 2022-06-27 20:24:07 +02:00
1b78f22a3c test fixes 2022-06-27 19:42:43 +02:00
418dbf006d Set version number to 1.1.2:
Due to an error in versioning first alpha versions, they were uploaded
as 1.1.0 and 1.1.1 and afterwards removed. Since we can't reuse the
same version number - we need to set it to 1.1.2
v1.1.2
2022-06-23 14:45:12 +02:00
64882fc6af Merge pull request #21 from vaerksted/1.1
fix typos
2022-06-23 14:43:36 +02:00
d2f9780965 typos 2022-06-22 16:22:27 -05:00
5420fe39d9 Various fixes:
- removed utf8 part of parser, instead we use python binary
  object for parameter substituton (text mode)
- removed memory leaks
- fixed crash when reusing cursor with different number of
  placeholders
2022-06-08 13:43:20 +02:00
ad4937dc96 Changed error message for closed connection
Since SQLALchemy test suite checks for the word
'Invalid' we changed the error message for closed
connections back to "Invalid connection or not connected"
2022-06-07 08:37:48 +02:00
a9fcc27ab0 Fixed __version_info__ for GA 2022-05-30 09:16:23 +02:00
fde6a22f2a Setup:
removed prerelease segment
removed eoled python 3.6 version
2022-05-30 07:33:24 +02:00
f23e4e9b83 CONPY-205: Added error constants
Error code constants are now defined in constants/ERR.
The file ERR.py is generated by helper/create_errconst.py
script, please don't edit it.
2022-05-25 18:54:11 +02:00
30c8f33b08 CONPY-205: Inconsistent exceptions
- All parameter exceptions are now ProgrammingErrors
- A dictionary now might contain more keys than
  placeholders in statement
- Fixed unhandled exception when using dictionary as parameter
2022-05-25 18:47:03 +02:00
0a7f751f68 Test fixes 2022-05-21 10:06:26 +02:00
7394d84f5e Don't clear rowcount after bulk
Since bulk operations using returning will return a result set,
we need to clear rowcount before performing bulk operation.
2022-05-21 10:02:18 +02:00
693442e195 Fixed typo 2022-05-21 08:35:35 +02:00
f93370a275 Cursor: Set buffered to True if no args were specified 2022-05-21 07:59:18 +02:00
e3207bb2fb Merge branch '1.1' of https://github.com/mariadb-corporation/mariadb-connector-python into 1.1 2022-05-21 07:15:23 +02:00
4f88242a4b Added new connection method dump_debug_info() 2022-05-21 07:13:34 +02:00
107d737dbc [misc] adding osx test 2022-05-20 17:42:45 +02:00
ef57069492 CONPY-202: Fixed typo in installation 2022-05-19 12:04:59 +02:00