Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.6, 10.11, 11.4, 11.8, 12.3
-
None
Description
mroonga_command() UDF does not set init->max_length, so the server, not knowing any better, uses max_length of the argument. Result:
mroonga/storage.create_table_index_flags_invalid w6 [ fail ]
|
Test ended at 2026-04-29 14:00:51
|
 |
CURRENT_TEST: mroonga/storage.create_table_index_flags_invalid
|
--- storage/mroonga/mysql-test/mroonga/storage/r/create_table_index_flags_invalid.result
|
+++ storage/mroonga/mysql-test/mroonga/storage/r/create_table_index_flags_invalid.reject
|
@@ -9,5 +9,5 @@
|
Warning 16508 The index flag 'COMPRESS_ZSTD' is invalid. It is ignored
|
SELECT mroonga_command("dump --dump_plugins no --dump_schema no");
|
mroonga_command("dump --dump_plugins no --dump_schema no")
|
-column_create memos#content index COLUMN_INDEX|WITH_POSITION memos content
|
+column_create memos#content index COLUM
|
DROP TABLE memos;
|
because argument's length is 39 and the actual result length is 74. But the server tells the client that the max result length is 39. Test fails in --cursor and in --view that actually use max result length.
Also (I didn't tryi, but think) this will show in, like
CREATE t1 AS SELECT mroonga_command("dump --dump_plugins no --dump_schema no"); |
or even simply (I did try that):
--enable_metadata
|
SELECT mroonga_command("dump --dump_plugins no --dump_schema no"); |
Attachments
Issue Links
- relates to
-
MDEV-31554 Cursor protocol cuts off the end of json body for some json functions
-
- Confirmed
-