mariadb/client
Dave Gosselin b096ed3af8 MDEV-37260 Implicitly named query blocks, CREATE VIEW AS supports hints
Query blocks have implicit names, such as `select#1`, formulated
by appending their select number to the string `select#`.  This patch
allows hints to scope their applicability by implicit query block
name.  For example,
  SELECT /*+ JOIN_ORDER(@`select#2` t1, t2) */ ...
@`select#2` is an implicit query block name.  Users can control hint
applicability per query block without first naming the blocks with
QB_NAME().

Hints may now be specified within VIEWs during their creation and
they are applied locally within that VIEW's scope.  For example,
  CREATE VIEW v1 AS
    SELECT /*+ IGNORE_INDEX(t1 idx1) */ FROM t1 ... GROUP BY ... HAVING ...
In many cases and for some parts of the VIEW, the query plan
doesn't really depend on how the VIEW is used, so it makes sense
to control a part of the query plan from the VIEW definition.

Implicit names are not yet supported in VIEWs.  Attempting to create
a VIEW with an implicit name reference will cause the server to create
the VIEW, but it will emit a warning and exclude that hint from the query.
2025-08-29 14:18:12 -04:00
..
async_example.c MDEV-25602 get rid of __WIN__ in favor of standard _WIN32 2021-06-06 13:21:03 +02:00
client_metadata.h MDEV-17832 Protocol: extensions for Pluggable types and JSON, GEOMETRY 2020-03-10 20:43:32 +04:00
client_priv.h MDEV-33627 : Implement option --dir in mariadb-import 2024-07-16 15:16:29 +02:00
CMakeLists.txt MDEV-34740 mariadb-import: optimize index and constraint creation 2025-01-24 13:15:05 +01:00
completion_hash.cc Merge 10.4 into 10.5 2020-11-03 16:24:47 +02:00
completion_hash.h Update FSF Address 2019-05-11 21:29:06 +03:00
connection_pool.cc MDEV-32216 Connection pool with asynchronous query execution. 2024-01-29 11:54:37 +01:00
connection_pool.h MDEV-32216 Connection pool with asynchronous query execution. 2024-01-29 11:54:37 +01:00
echo.c Fix typos in the codebase. 2022-08-09 18:41:09 +03:00
import_util.cc MDEV-34740 mariadb-import: optimize index and constraint creation 2025-01-24 13:15:05 +01:00
import_util.h Fix typos in C comments in miscellaneous files 2025-03-24 13:36:28 +11:00
mariadb-conv.cc unify client/tool version string 2023-01-19 12:39:28 +01:00
my_readline.h Update FSF Address 2019-05-11 21:29:06 +03:00
mysql.cc MDEV-37260 Implicitly named query blocks, CREATE VIEW AS supports hints 2025-08-29 14:18:12 -04:00
mysql_plugin.c Merge branch '10.11' into 11.2 2024-09-18 10:45:26 +10:00
mysql_upgrade.c Merge 11.4 into 11.8 2025-04-02 14:07:01 +03:00
mysqladmin.cc cleanup: CREATE_TYPELIB_FOR() helper 2024-11-05 14:00:47 -08:00
mysqlbinlog.cc Merge branch '11.8' into 12.0 2025-07-31 20:55:47 +02:00
mysqlcheck.c Merge branch '11.8' into 12.0 2025-06-18 07:50:39 +02:00
mysqldump.cc Merge branch '12.0' into 12.1 2025-08-03 15:01:09 +02:00
mysqlimport.cc Fix typos in C comments in miscellaneous files 2025-03-24 13:36:28 +11:00
mysqlshow.c [MDEV-14978] Client programs to use $MARIADB_HOST consistently 2024-10-04 06:44:39 +01:00
mysqlslap.c Merge branch '11.4' into 11.8 2025-06-18 07:43:24 +02:00
mysqltest.cc fix tests for --view 2025-08-03 14:59:18 +02:00
readline.cc MDEV-27142 disable text mode for Windows stdio by default 2022-07-18 13:18:03 +02:00