Commit Graph

435 Commits

Author SHA1 Message Date
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
9b8a32dad6 Build fixes:
This patch includes fixes for building with Python 3.11 (see
CONPY-201):

- PyType assignments replaced by Py_SET_TYPE
- removed orphaned doc strings
2022-05-10 09:06:56 +02:00
1aa2bbef08 - Documentation
- docstring fixes
- removed doc and docs subdirectory, since documentation is in docs
  branch
2022-04-11 08:03:20 +02:00
48aea2f27c Docu fxes 2022-04-05 16:54:37 +02:00
9ae99cddd5 - Documentation fixes
- removed COMMAND constants
2022-04-03 18:38:48 +02:00
55ce15a1aa Minor documentation fixes 2022-04-03 07:03:32 +02:00
70ed9b47de Added missing docstring for cursor.paramcount 2022-04-02 20:02:52 +02:00
f2fc6e8af6 test for CONPY-178 2022-03-25 06:30:23 +01:00
2e81925a3e Skip test if we are connected to MySQL server 2022-02-20 14:34:51 +01:00
ba1bce8b62 Added test for REPLACE RETURNING 2022-02-20 08:56:21 +01:00
f844622b51 Added test for CONPY-194 2022-02-20 05:03:43 +01:00
1d74599d47 Fix for CONPY-194:
Since executemany() returns a result set if the insert, update,
delete or replace statement contains returning directive, we
need to check if execute returned number of fiels and allocate
a result set.
2022-02-20 04:42:28 +01:00
c8a4ed7a80 Set prerelease to rc1 v1.1.0rc1 2022-02-10 18:56:35 +01:00
18cae2fc0f docu fix 2022-01-25 06:06:52 +01:00
a11a1b67c3 Add documentation for CONPY-88 2022-01-25 06:05:12 +01:00
4bcfd6a58e CONPY-88
Extended cursor->description:

The descriptor now contains 11 elements:
descriptor[8]: table name
descriptor[9]: original column name
descriptor[10]: original table name
2022-01-25 05:35:45 +01:00
63c82019ab Check if client lib supports multi hosts
Since MariaDB Connector/C 3.3.0 host parameter may contain multiple hosts,
separated by a comma for simple failover. If MariaDB Connector/Python uses
a MariaDB Connector/C library < 3.3.0 an exception will be raised if host
parameter contains a comma.
2022-01-23 20:40:59 +01:00
811cc1c5f7 Check if object was closed:
When accessing methods or properties of connection and cursor objects
we now check if the object or parent object was closed and raise an
exception.
2022-01-16 20:59:58 +01:00
a839827f59 CONPY-189: Windows build fix for Visual Studio 2022
- Build parameters are now written to config_win.h instead of passing
  them as command line parameters
- Fixed several compiler warnings
2021-12-21 08:21:04 +01:00
aaba6e2e11 Fix for CONPY-187:
For detecting server bulk capabilities extended server capabitilies
(instead of standard capabilities) have to be checked.

Kudos to Diego Dupin
2021-12-19 19:52:14 +01:00
ae9cae91a6 test - skipping a maxscale bug 2021-12-17 15:56:06 +01:00
db3b6f555c test - change travis test to use common framework in order to set different server type
update benchmarks
2021-12-17 15:05:04 +01:00
a9bcb3c98a Updated documentation (release notes)
[ci skip]
2021-12-13 07:50:42 +01:00
263f428213 CONPY-184
Display status of connection, cursor and pool class in
string representation.

If an object (cursor, class, connection pool) was closed, the
string representation (tp_repr) now shows the status of the object.

Example:

>>> import mariadb
>>> connection=mariadb.connect()
>>> connection
<mariadb.connection connected to 'localhost' at 0x7f94d77c3b40>
>>> connection.close()
>>> connection
<mariadb.connection (closed) at 0x7f94d77c3b40>
2021-12-13 05:55:10 +01:00
5831a69721 Fix for CONC-178:
When a cursor was not properly cleared (all results weren't
fetched) the clear_result routine has to free result sets only
if field_count > 0.
2021-11-25 06:06:48 +01:00
eb48926845 Fix for CONPY-175:
Since memory for stack allocation is limited, we need to allocate
memory from the heap, otherwise in case of large strings escape_string
method might crash.
2021-11-02 11:15:51 +01:00
d3eafac5b3 bump version 2021-11-02 11:15:04 +01:00