Skip to content

Commit 284f9ed

Browse files
committed
Disallow unquoted database names with dot
1 parent 9aa67a9 commit 284f9ed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/ROOT/pages/database-administration/standard-databases/naming-databases.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ Naming rules for databases are as follows:
1919
The `-` (dash) and `.` (dot) characters are not legal in Cypher variables.
2020
Names with a `-` in them must be enclosed within backticks.
2121
For example, `CREATE DATABASE ++`main-db`++` is a valid database name.
22-
Database names are the only identifier for which dots do not need to be escaped.
23-
For example `main.db` is a valid database name.
24-
However, this behavior is deprecated due to the difficulty of determining if a dot is part of the database name or a delimiter for a database alias in a composite database.
22+
Since Neo4j 5.27 names with a `.` in them must be enclosed within backticks.
23+
However, database names with dots in them are not recommended, due to the difficulty of determining if a dot is part of the database name or a delimiter for a database alias in a composite database.
24+
A future version of Neo4j may disallow database names with dots entirely.
2525
====
2626

2727
It is possible to create an alias to refer to an existing database to avoid these restrictions.

0 commit comments

Comments
 (0)