1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-07 02:42:49 +03:00

139 Commits

Author SHA1 Message Date
Oleksandr Byelkin
55abb32038 Merge branch '3.1' into 3.3-merge 2025-04-20 10:16:30 +02:00
Georg Richter
28a1e4b599 Fix for CONC-762: Always set is_null and length in bind structure to avoid
msan errors
2025-03-31 11:02:35 +02:00
Georg Richter
fe8f48c6c3 Build fix: fix warning in ps_bugs.c 2025-02-12 08:34:10 +01:00
Georg Richter
992c7f26dd Travis fix: Skip maxscale for test_mdev35935 2025-02-12 07:12:14 +01:00
Georg Richter
1e4e47347d test fix: use my_ulonglong instead of ulong
Use 64-bit long instead of 32-bit value to avoid
overflow
2025-02-11 19:38:55 +01:00
Georg Richter
28ae227e80 CONC-755: Fix MSAN failure
Fixed uninitialized variable warning by initializing MYSQL_BIND
structure.
2025-02-11 10:50:40 +01:00
Georg Richter
13c8815604 Fix test CONC-702
Drop procedure p2 to avoid failing mtr test
2024-12-17 19:04:08 +01:00
Georg Richter
6d28fe89af Merge branch '3.1' into 3.3 2024-12-08 11:50:43 +01:00
Georg Richter
232e81f021 Add test case for CONC-176 2024-12-04 10:13:21 +01:00
Georg Richter
b522ed1a43 Merge branch '3.1' into 3.3 2024-11-27 15:58:51 +01:00
Georg Richter
662a966056 CONC-702: Fix statement status
If a resultset in binary protpcpl doesn't contain data
(fields equal zero) and there are no more pending
result sets we need to change the statement status to
FETCH_DONE, otherwise it will be impossible to execute
other commands until the statement was closed.
2024-11-18 07:15:42 +01:00
Georg Richter
55e3b63c34 CONPY-739: prepared statement support AUTO_SEC_PART_DIGITS
FROM_UNIXTIME() function always returns AUTO_SEC_PART_DIGITS
(value=39). In case the microsecond value was set in MYSQL_TIME,
the decimal part should be SEC_PART_DIGITS (=6).
2024-11-15 17:41:23 +01:00
Georg Richter
072dadc392 Disable test when running against MySQL server 2024-05-13 15:54:04 +02:00
Marko Mäkelä
02151b6a0e Merg 3.1 into 3.3 2024-04-11 14:54:08 +03:00
Marko Mäkelä
dab59732d9 Fix GCC 14 -Wcalloc-transposed-args 2024-04-11 14:50:07 +03:00
Georg Richter
1d3fd5818a Test fix for test_bug4236 2024-04-08 17:19:42 +02:00
Sergei Golubchik
50f65db279 compilation warning
ps_bugs.c:3275:5: note: ‘sprintf’ output between 9 and 19 bytes into a destination of size 12
2024-02-04 22:17:25 +01:00
Oleksandr Byelkin
64f9d88f30 Merge branch '3.1' into 3.3 2023-10-23 13:36:05 +02:00
Oleksandr Byelkin
ae565eea90 Use safer snprintf call. 2023-10-23 13:32:45 +02:00
Georg Richter
209b23a38c Test fixes:
- Fixed failing test when running against MySQL server
- Disabled test when running against MySQL server.
2023-08-30 07:44:32 +02:00
Georg Richter
5f88f50cf0 Build fix:
Move the setting "treat warning as errors" befind feature detection,
otherwise several try_compile/try_run commands will fail.
2023-08-16 15:02:02 +02:00
Georg Richter
bec589e679 Merge branch '3.1' into 3.3 2023-04-26 08:10:40 +02:00
Georg Richter
f5a4c73df4 Fix memory leak in unittest 2023-04-26 08:10:08 +02:00
Georg Richter
dd8962a4b5 Merge branch '3.1' into 3.3 2023-04-25 15:08:28 +02:00
Georg Richter
b0ec2101bf Test fixes when testing against MySQL 2023-04-24 14:58:01 +02:00
Georg Richter
e4417e725e Merge branch '3.1' into 3.3 2023-02-09 08:57:48 +01:00
Georg Richter
669726a1d9 Fix for CONC-633:
If prepare step failed in mariadb_stmt_execute_direct now both
mysql_stmt_error and mysql_error return the error message from
prepare step instead of error message of execute.
2023-02-08 12:21:22 +01:00
Georg Richter
12bd1d5511 Merge branch '3.1' into 3.3 2023-01-16 12:12:46 +01:00
Georg Richter
895235815c Fix for CONC-627:
Don't substitute parameters in server error messages in
prepeated statement error handler function.
2023-01-16 11:13:00 +01:00
Georg Richter
5f6133653d Fix for CONC-623:
If callback function returns a non zero return code, execute
will now abort with error CR_ERR_STMT_PARAM_CALLBACK.
2023-01-15 15:12:38 +01:00
Georg Richter
2dd03f04d1 typo fixes (was PR 203) 2022-07-25 08:44:26 +02:00
Georg Richter
5f1f517cfa Various typo fixes
Includes fixes from PR-201.
2022-07-03 13:45:37 +02:00
Georg Richter
35826cd51c Test fix for test_bug4236 2022-06-29 13:27:28 +02:00
diego Dupin
fb85d99d13 Adding xpand to test suite 2022-03-23 11:46:40 +01:00
Georg Richter
2b6a8c44c5 Merge branch '3.2' into 3.3 2022-03-01 11:30:59 +01:00
Georg Richter
bc9458893f Merge branch '3.1' into 3.2 2022-03-01 11:28:33 +01:00
Georg Richter
367772c5c9 Skip test_mdev19838 when running vs. maxscale 2022-03-01 10:53:57 +01:00
Georg Richter
b5c1a23c82 Merge branch '3.2' into 3.3 2022-01-25 03:52:42 +01:00
Georg Richter
3fe2f50545 Merge branch '3.1' into 3.2 2022-01-25 03:51:45 +01:00
Georg Richter
8aa0ffdcbd Test fixes:
Fixed warning (int/size_t)
Fixed error message
2022-01-24 14:49:34 +01:00
Georg Richter
49a22c269a Merge pull request #153 from Antchel/3.1
test fixes
2022-01-23 21:08:32 +01:00
Georg Richter
37b3760ac9 travis:
- disabled conc566 test when running against SkySQL
- added 10.7 server
2021-11-18 17:00:45 +01:00
Marko Mäkelä
5cd74de9f1 Merge 3.1 into 3.2 2021-10-06 10:26:42 +03:00
Marko Mäkelä
80188c3859 MDEV-26761 test_mdev19838() fixup: type mismatch on 64-bit Windows 2021-10-06 07:06:55 +03:00
Marko Mäkelä
8574d0b840 Merge 3.1 into 3.2 2021-10-05 16:59:15 +03:00
Marko Mäkelä
f4772150d2 CONC-566 fixup: unit test cleanup 2021-10-05 16:48:07 +03:00
Georg Richter
2933a1ca75 Merge branch '3.1' into 3.2 2021-10-05 15:19:59 +02:00
Georg Richter
9c02505474 Fixed for MDEV-26761:
If mariadb_stmt_execute_direct fails, we need to set the number
of parameters (obtained by response packet of mysql_stmt_prepare)
back to the number of prebinded parameters to avoid memory
overrun.

This fix also includes several adress-sanitizer bugs in unit tests
of Connector/C.
2021-10-05 14:50:32 +02:00
Georg Richter
18f7cf423f Merge branch '3.1' into 3.2 2021-09-25 16:28:04 +02:00
Georg Richter
4b9379b2aa Fix for CONC-566:
If cursor type is set to read only, and SERVER_STATUS_CURSOR_EXISTS
flag was not set in the server_status of EOF packet, the assumption
was made that a single result set will follow which will be stored
by a call to mysql_stmt_store_result().

As the example in the bug report shows, this is not always the case,
since a stored procedure call might also unset the CURSOR flag and
will always return multiple result sets. In this case it will be
handled now as "normal" unbuffered result set.
2021-09-25 16:07:24 +02:00