Commit Graph

340 Commits

Author SHA1 Message Date
2bd40ca1de Test fixes 2021-07-18 18:16:38 +02:00
8ee02ac7e3 Cursor fixes for execute, implemented execute_direct 2021-07-14 22:14:52 +02:00
c8a9f50712 Updated required minimum version
of Connector&C (3.2.4)
2021-07-12 10:52:02 +02:00
84df56ce40 connection and cursor class are now written in
native python
2021-07-12 09:46:05 +02:00
27730cd018 Moved more methods and propertys from C to Python code 2021-03-21 22:44:42 +01:00
1299be5031 fixed typo 2021-01-18 06:41:15 +01:00
1f084d112f disable pooling until tests are ready 2021-01-18 06:39:05 +01:00
b5936a9d02 Added new class Pool 2021-01-18 06:37:09 +01:00
aa65cc853a Exchanged C written connection pool class by native python class. 2021-01-18 06:11:03 +01:00
2ce8f2cf2f Added missing dbapi20.py 2020-12-02 10:41:29 +01:00
feb990db4e Moved DBAPI 2.0 Date/Time/Timestamp constructors from C code to Python module dpapi20.py 2020-12-01 20:59:27 +01:00
a2b3e98104 Replaced Mrdb_Fieldinfo by python fieldinfo class 2020-12-01 08:28:01 +01:00
7df428ecf8 Moved Objects from c to python code
Indicator, BINARY, NUMBER, STRING and DATE objects were moved
to python code
2020-11-30 16:49:16 +01:00
e8d7854fef codespell typo fixes 2020-11-25 13:44:18 +01:00
ba6af78f6e Fixed travis link for build status 2020-11-25 13:16:51 +01:00
8a9ab456d8 bumped version number 2020-11-24 18:37:52 +01:00
5718305c3b Windows build fix v1.0.5 2020-11-24 15:54:15 +01:00
a1c709b0e8 Fix for CONPY-133:
Extended parser for supporting MariaDB comment syntax
(https://mariadb.com/kb/en/comment-syntax/)
2020-11-24 14:00:56 +01:00
6a832099b1 Fixed base class for exceptions 2020-11-24 14:00:15 +01:00
0f0468a085 Fix for CONC-132: Fix leak in connection pool
When closing a connection pool the allocated buffer for pool_name
was not freed in a proper way.
2020-11-23 15:15:13 +01:00
35a12359b5 travis: disable bench 2020-11-23 09:31:20 +01:00
1ae8afb5cf MySQL test fix: use server side cursor for select only 2020-11-22 21:21:39 +01:00
fab2a6d810 Fixed bug in pooling:
Due to missing reference count incrementation the default configuration
was removed/overwritten.
2020-11-22 20:38:26 +01:00
5ef5008c68 Set LD_LIBRARY_PATH for Connector/C libraries 2020-11-20 15:13:45 +01:00
f55b7340c9 Save entry path in PROJ_PATH environment variable 2020-11-20 13:04:12 +01:00
2d485942d1 fixed typo in travis script 2020-11-20 12:05:52 +01:00
2a810ef664 travis fix: change directory to mariadb-connector-python
instead of home dir
2020-11-20 11:33:59 +01:00
6cb17e7538 Travis fix: change back to home directory after build of connector/c 2020-11-20 09:51:02 +01:00
faf23d6c71 fixed typo (travis test) 2020-11-20 09:32:55 +01:00
185ded7b89 Travis fix:
Don't use ubuntu packages for MariaDB Connector/C. These packages
were build with GnuTLS and without chaching_sha2_plugin, so testing
against MySQL 8.0 will fail.
2020-11-20 09:03:00 +01:00
1133b2a09c Correction for MARIADB_PLUGIN_DIR 2020-11-18 21:30:58 +01:00
64c20269c0 Revert "Set MARIADB_PLUGIN_DIR for travis environment"
This reverts commit b8af7727f7.
2020-11-18 21:29:57 +01:00
b8af7727f7 Set MARIADB_PLUGIN_DIR for travis environment 2020-11-18 19:41:12 +01:00
90ce14c8eb Travis fixes 2020-11-18 18:15:26 +01:00
26ca93492f Test fixes for testing against MySQL server 2020-11-18 16:42:35 +01:00
47ae022591 Disable pypy build (fails due to missing PyStructureSequence_New) 2020-11-18 09:55:38 +01:00
3ea9319728 Followup form last fix: remove BLOB or JSON check 2020-11-18 09:53:17 +01:00
76f01e8f5f Test fix:
MDEV-17832 (pluggable data types was added in MariaDB 10.5.2), so for
versions < 10.5.2 we need to check for data type BLOB instead of JSON.
2020-11-17 17:19:36 +01:00
312ba15173 Follow up of fix for CONC-130:
Workaround for #21066 (https://bugs.python.org/issue20066)
2020-11-16 14:58:59 +01:00
acf9f9190e Fix for CONPY-127: Let connector accept None values
Fix implementation of connection method: String values
now additionally except None values which will be
internally transformed to NULL.
2020-11-16 11:15:22 +01:00
a47d3e5d76 Implementation of CONPY-129:
Added connection attribute server_version_info and (for compatibiliry)
get_server_version() method.
Both return a tuple, describing the version number of connected server
in following format: (MAJOR_VERSION, MINOR_VERSION, PATCH_VERSION)
2020-11-16 10:03:05 +01:00
4a5d02a1b1 Fix for CONPY-130: DeprecationWarning: builtin type Row has no _module_ attribute
Changed sequence description from Row to mariadb.Row.

This patch also includes a followup fix for CONP-131:

PyStrustSequenceNew will be used only for Python versions > 3.6
2020-11-16 07:33:53 +01:00
f6be6ba512 Fix for CONPY-131:
Instead of using PyStructSequence_New (broken in Python3.6) use a
static struct which will be initialized voa PyStructSequence_Init()
call.
2020-11-16 07:07:50 +01:00
37864dd831 Fix for CONPY-126
Connection attributes in PyMember definition will be accessed as
string constants instead of Python Object, so the object will be
created only if the member will be accessed in python code and it's
reference count doesn't need to be decrement when the connection
class will be deallocated.
2020-11-01 09:14:11 +01:00
ae7e4422e2 Bumped version 2020-10-20 06:25:48 +02:00
3b2edf5b35 Fix for CONPY-115:
Replaced the obsolete ULONG_LONG_MAX definition by
ULLONG_MAX.
v1.0.4
2020-10-19 08:11:32 +02:00
d30042b01a Fixed build error
According to the documentation (but also setup.py) the minimum
required version of MariaDB Connector/C is 3.1.5. Since extended
field_types were added in 3.1,8, we need to check the version
of MariaDB Connector/C.
2020-10-13 08:44:33 +02:00
020017ee33 Fix for CONPY123: Free pending result sets when closing cursor
When using text protocol pending result sets weren't properly freed,
so executing another command on the same connection resulted in an error
"commands out of sync".
2020-10-12 09:05:49 +02:00
30caad5059 Bump version number 2020-10-05 09:30:12 +02:00
21c9afc13f Removed reference increment in cursor.description v1.0.3 2020-10-04 12:34:41 +02:00