Commit Graph

16 Commits

Author SHA1 Message Date
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
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
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
f93370a275 Cursor: Set buffered to True if no args were specified 2022-05-21 07:59:18 +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
55ce15a1aa Minor documentation fixes 2022-04-03 07:03:32 +02: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
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
3184707494 Fix for CONPY-168
Force use of binary protocol if binary parameters
were provided.
2021-10-03 06:50:00 +02:00
cfe3eee3b4 Fix for CONPY-167:
If executemany() is executed directly after execute() with the same
statement it needs to be reprepared.
2021-09-25 12:50:12 +02:00
aa6edc38cb Updated documentation 2021-08-21 18:09:48 +02:00
d3d1cfc482 Fixed rowcount for executemany() when connected
to a MySQL database server.
2021-08-16 09:28:32 +02:00
879744926b Raise exception if number of parameter doesn't match. 2021-08-05 09:57:09 +02:00
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
47ca11d921 Documentation update 2021-08-01 10:31:10 +02:00