Commit Graph

350 Commits

Author SHA1 Message Date
9ac0551ed1 Default mode for cursor changed:
Due to several incompatibilites (but also MDEV-23768, where errors
can't be triggered in unbuffered) we decided to switch the default
mode for cursor class for buffered from False to True.
2021-08-05 08:32:20 +02:00
8cd33d55c1 Fixed memory leak in parser 2021-08-03 11:31:31 +02:00
cb0c3c8f5a Documentation update 2021-08-01 11:29:22 +02:00
b3713fd588 initialization fixes 2021-08-01 11:16:19 +02:00
47ca11d921 Documentation update 2021-08-01 10:31:10 +02:00
ebb09cf56e Documentation 2021-07-28 06:55:10 +02:00
5a81686f4c Documentation work 2021-07-26 06:54:38 +02:00
6c6e1005eb remove commit/rollback from c code 2021-07-23 11:07:43 +02:00
ea97f66769 connection class:
moved kill method to python class
2021-07-22 16:06:27 +02:00
5870f5d4d7 cursor:
added keyword quote_sequences (default=true)

connection:

moved tpc functions to native python
moved autocommit to native python
2021-07-22 14:15:53 +02:00
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