Support for bracket notation inside MULTIPOINT - #5661
Open
DaveGosselin-MariaDB wants to merge 1 commit into
Open
Support for bracket notation inside MULTIPOINT#5661DaveGosselin-MariaDB wants to merge 1 commit into
DaveGosselin-MariaDB wants to merge 1 commit into
Conversation
DaveGosselin-MariaDB
commented
Sep 10, 2026
Member
ST_GEOMFROMTEXT('MULTIPOINT((0 0),(1 1))') returned NULL while
ST_GEOMFROMTEXT('MULTIPOINT(0 0,1 1)') returned the geometry. The
bracketed spelling is the one the OGC WKT grammar defines. In
06-103r4 section 7.2.2 a <multipoint text> is a list of <point text>,
and a <point text> has its own parentheses, the same way a
<multilinestring text> is a list of <linestring text>. The bare
spelling matches no production in that grammar, so the text MariaDB
rejected was the conformant one.
The first point now determines which of the two bracketing forms the
remaining list elements will use. A mixed list such as MULTIPOINT((0
0),1 1) is an error. The bare form stays accepted because existing
data and applications use it. Geometry::create_from_wkt is the single
entry into the WKT reader, so ST_MPOINTFROMTEXT and a MULTIPOINT
nested in a GEOMETRYCOLLECTION are covered by the same change.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
DaveGosselin-MariaDB
force-pushed
the
11.4-mdev-36166-multipoint-brackets
branch
from
September 10, 2026 18:59
56f26ec to
03bda00
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.