[MDEV-12652] DIR CONNECT table returns empty table when using flag=0 Created: 2017-05-01  Updated: 2017-05-01

Status: Open
Project: MariaDB Server
Component/s: Storage Engine - Connect
Affects Version/s: 10.1.22
Fix Version/s: 10.1

Type: Bug Priority: Minor
Reporter: Alice Sherepa Assignee: Olivier Bertrand
Resolution: Unresolved Votes: 0
Labels: None
Environment:

ubuntu 16.04



 Description   

In DIR CONNECT tables flag=0 is reserved for the disk drive (Windows), but if it is used on Ubuntu, the result is an empty table, without any warnings/errors.

--------------
create table t2 (
	fdr varchar(255) NOT NULL flag=0,
	fpath varchar(255) NOT NULL flag=1,
	fname varchar(255) NOT NULL flag=2
)engine=CONNECT table_type=DIR file_name='/home/alice/Downloads/*' option_list='subdir=1'
--------------
Query OK, 0 rows affected (0.03 sec)
 
--------------
select * from t2
--------------
Empty set (0.00 sec)
 
\! ls -la /home/alice/Downloads/
 
drwxr-xr-x  3 alice alice 4096 May  1 11:34 .
drwxr-xr-x 25 alice alice 4096 May  1 09:55 ..
-rw-rw-r--  1 alice alice    0 May  1 10:34 1
drwxrwxr-x  2 alice alice 4096 May  1 11:35 11
-rw-rw-r--  1 alice alice    0 May  1 10:34 2
-rw-rw-r--  1 alice alice    0 May  1 10:34 3


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