1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

MDEV-34860 Fix opt_hint_timeout.test for embedded; fix mariadb client

1. Disable opt_hint_timeout.test for embedded server. Make sure
the test does not crash even when started for embedded server.
Disable view-protocol since hints are not supported inside views.

2. Hints are designed to behave like regular /* ... */ comments:
   `SELECT /*+ " */ 1;` -- a valid SQL query
However, the mysql client program waits for the closing doublequote
character.
Another problem is observed when there is no space character between
closing `*/` of the hint and the following `*`:
   `SELECT /*+ some_hints(...) */* FROM t1;`
In this case the client treats `/*` as a comment section opening and
waits for the closing `*/` sequence.

This commit fixes all of these issues
This commit is contained in:
Oleg Smirnov
2024-12-07 21:15:32 +07:00
parent d2918e10fc
commit 0e088b5d7e
5 changed files with 68 additions and 17 deletions

View File

@ -6064,7 +6064,9 @@ public:
}
void set_query_timer_force(ulonglong timeout_val)
{
#ifndef EMBEDDED_LIBRARY
thr_timer_settime(&query_timer, timeout_val);
#endif
}
void reset_query_timer()
{