[MDEV-7361] Cannot build OQGRAPH table on a table having special chars Created: 2014-12-22  Updated: 2023-11-28

Status: Open
Project: MariaDB Server
Component/s: Storage Engine - OQGRAPH
Affects Version/s: 10.0.15
Fix Version/s: 10.4, 10.5, 10.6

Type: Bug Priority: Minor
Reporter: Federico Razzoli Assignee: Andrew McDonnell
Resolution: Unresolved Votes: 0
Labels: None


 Description   

The use of special chars in a table/column name seems to be fully supported in MariaDB, so one would expect that an OQGRAPH table can be built on a table having, say, a space in its name. Unfortunately, this doesn't seem to work.

CREATE TABLE `x tab` (
	a INT UNSIGNED NOT NULL,
	b INT UNSIGNED NOT NULL,
	PRIMARY KEY (a, b),
	KEY (b)
)
	ENGINE = InnoDB;
INSERT INTO `x tab` (a, b) VALUES (1, 2), (2, 3), (3, 4), (2, 10), (10, 11);
SELECT * FROM `x tab`;
CREATE TABLE xoq (
	latch VARCHAR(32) NULL
	, origid BIGINT UNSIGNED NULL
	, destid BIGINT UNSIGNED NULL
	, weight DOUBLE NULL
	, seq BIGINT UNSIGNED NULL
	, linkid BIGINT UNSIGNED NULL
	, KEY (latch, origid, destid) USING HASH
	, KEY (latch, destid, origid) USING HASH
)
	ENGINE = OQGRAPH
	DATA_TABLE = 'x tab'
	ORIGID = 'a'
	DESTID = 'b';
SELECT *
	FROM xoq
	WHERE latch = 'breadth_first'
		AND origid = 1
		AND destid = 3;

Last query returns:
ERROR 1146 (42S02): Table 'test.x tab' doesn't exist



 Comments   
Comment by Andrew McDonnell [ 2015-02-28 ]

We are planning to start looking at this soon

Generated at Thu Feb 08 07:19:00 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.