Skip to content

Commit 20a5003

Browse files
committed
Fixing smaller review comments
1 parent 939a36b commit 20a5003

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ You can modify standard databases using the Cypher command `ALTER DATABASE`.
1717
ALTER DATABASE name [IF EXISTS]
1818
{
1919
SET ACCESS {READ ONLY \| READ WRITE} \|
20-
SET DEFAULT LANGUAGE CYPHER {5\|25} \|
2120
SET TOPOLOGY n PRIMAR{Y\|IES} [m SECONDAR{Y\|IES}] \|
22-
SET OPTION option value
21+
SET OPTION option value \|
22+
SET DEFAULT LANGUAGE CYPHER {5\|25}
2323
}
2424
[WAIT [n [SEC[OND[S]]]]\|NOWAIT]
2525
----
@@ -99,7 +99,7 @@ SET ACCESS READ WRITE
9999
----
100100

101101
== Alter database default language
102-
The `ALTER DATABASE` command can be used to set the default Cypher version for a database.
102+
The `ALTER DATABASE` command can be used to set the default Cypher version for a database, including the `system` database.
103103
For more information see link:{neo4j-docs-base-uri}/cypher-manual/current/queries/select-version/#alter-default-cypher-version[Cypher Manual -> Queries -> Select Cypher version].
104104

105105
[role=enterprise-edition not-on-aura]

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,8 @@ However, some privileges enable users to see additional databases regardless of
211211
* Users with `CREATE/DROP/ALTER COMPOSITE DATABASE` or `COMPOSITE DATABASE MANAGEMENT` privileges can see all composite databases.
212212
* Users with `DATABASE MANAGEMENT` privilege can see all databases.
213213

214+
The `SET DATABASE DEFAULT LANGUAGE` privilege is intentionally left out and does not affect the returned databases.
215+
214216
If a user has not been granted `ACCESS` privilege to any databases nor any of the above special cases, the command can still be executed but it will only return the `system` database, which is always visible.
215217

216218
[[database-states]]

modules/ROOT/pages/database-administration/syntax.adoc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ CREATE DATABASE name [IF NOT EXISTS]
114114
[source, syntax, role="noheader"]
115115
----
116116
CREATE OR REPLACE DATABASE name
117+
[DEFAULT LANGUAGE CYPHER {5\|25}]
117118
[TOPOLOGY n PRIMAR{Y\|IES} [m SECONDAR{Y\|IES}]]
118119
[OPTIONS "{" option: value[, ...] "}"]
119120
[WAIT [n [SEC[OND[S]]]]\|NOWAIT]
@@ -124,13 +125,15 @@ CREATE OR REPLACE DATABASE name
124125
[source, synatx, role="noheader"]
125126
----
126127
CREATE COMPOSITE DATABASE name [IF NOT EXISTS]
128+
[DEFAULT LANGUAGE CYPHER {5\|25}]
127129
[OPTIONS "{" "}"]
128130
[WAIT [n [SEC[OND[S]]]]\|NOWAIT]
129131
----
130132

131133
[source, syntax, role="noheader"]
132134
----
133135
CREATE OR REPLACE COMPOSITE DATABASE name
136+
[DEFAULT LANGUAGE CYPHER {5\|25}]
134137
[OPTIONS "{" "}"]
135138
[WAIT [n [SEC[OND[S]]]]\|NOWAIT]
136139
----
@@ -142,9 +145,9 @@ CREATE OR REPLACE COMPOSITE DATABASE name
142145
ALTER DATABASE name [IF EXISTS]
143146
{
144147
SET ACCESS {READ ONLY \| READ WRITE} \|
145-
SET DEFAULT LANGUAGE CYPHER {5\|25} \|
146148
SET TOPOLOGY n PRIMAR{Y\|IES} [m SECONDAR{Y\|IES}] \|
147-
SET OPTION option value
149+
SET OPTION option value \|
150+
SET DEFAULT LANGUAGE CYPHER {5\|25}
148151
}
149152
[WAIT [n [SEC[OND[S]]]]\|NOWAIT]
150153
----

0 commit comments

Comments
 (0)