@@ -5918,6 +5918,143 @@ A variable-length relationship variable is bound more than once, which leads to
59185918======
59195919=====
59205920
5921+
5922+ [#_neo_clientnotification_statement_repeatedrelationshipreference]
5923+ === Callable shadowing
5924+
5925+ .Notification details
5926+ [cols="<1s,<4"]
5927+ |===
5928+ |Neo4j code
5929+ m|Neo.ClientNotification.Statement.CallableShadowing
5930+ |Title
5931+ a|A callable is shadowing another callable in scope.
5932+ |Description
5933+ a|
5934+ - Local procedure `%s` shadows built-in or external procedure of the same name.
5935+ - Local function `%s` shadows built-in or external function of the same name.
5936+ |Category
5937+ m|GENERIC
5938+ |GQLSTATUS code
5939+ m|03N83
5940+ |Status description
5941+ a|info: callable shadowing. Local `{ <<item>> }` `{ <<ident>> }` shadows built-in or external `{ <<item>> }` of the same name.
5942+ |Classification
5943+ m|GENERIC
5944+ |SeverityLevel
5945+ m|INFORMATION
5946+ |===
5947+
5948+
5949+ .Local procedure definition shadows built-in or external procedure
5950+ [.tabbed-example]
5951+ =====
5952+ [.include-with-GQLSTATUS-code]
5953+ ======
5954+ Query::
5955+ +
5956+ [source,cypher]
5957+ ----
5958+ DEFINE PROCEDURE dbms.info() {
5959+ RETURN "hello world!"
5960+ }
5961+ ----
5962+
5963+ Returned GQLSTATUS code::
5964+ 03N86
5965+
5966+ Returned status description::
5967+ info: callable shadowing.
5968+ Local procedure `dbms.info` shadows built-in or external procedure of the same name.
5969+
5970+ Suggestions for improvement::
5971+ Rename the local procedure to avoid shadowing, e.g., by putting it in a separate namespace:
5972+ +
5973+ [source, cypher, role="noplay"]
5974+ ----
5975+ DEFINE PROCEDURE my.dbms.info() {
5976+ RETURN "hello world!"
5977+ }
5978+ ----
5979+ ======
5980+ [.include-with-neo4j-code]
5981+ ======
5982+ Query::
5983+ +
5984+ [source,cypher]
5985+ ----
5986+ DEFINE PROCEDURE dbms.info() {
5987+ RETURN "hello world!"
5988+ }
5989+
5990+ // ...
5991+ RETURN 123
5992+ ----
5993+ Description of the returned code::
5994+ Local procedure `dbms.info` shadows built-in or external procedure of the same name.
5995+
5996+ Suggestions for improvement::
5997+ Rename the local procedure to avoid shadowing, e.g., by putting it in a separate namespace:
5998+ +
5999+ [source, cypher, role="noplay"]
6000+ ----
6001+ DEFINE PROCEDURE my.dbms.info() {
6002+ RETURN "hello world!"
6003+ }
6004+ ----
6005+ ======
6006+ =====
6007+
6008+
6009+ .Local function definition shadows built-in or external function
6010+ [.tabbed-example]
6011+ =====
6012+ [.include-with-GQLSTATUS-code]
6013+ ======
6014+ Query::
6015+ +
6016+ [source,cypher]
6017+ ----
6018+ DEFINE FUNCTION reverse() = "!dlrow olleh"
6019+ ----
6020+
6021+ Returned GQLSTATUS code::
6022+ 03N86
6023+
6024+ Returned status description::
6025+ info: callable shadowing.
6026+ Local function `reverse` shadows built-in or external function of the same name.
6027+
6028+ Suggestions for improvement::
6029+ Rename the local function to avoid shadowing, e.g., by putting it in a separate namespace:
6030+ +
6031+ [source, cypher, role="noplay"]
6032+ ----
6033+ DEFINE FUNCTION my.reverse() = "!dlrow olleh"
6034+ ----
6035+ ======
6036+ [.include-with-neo4j-code]
6037+ ======
6038+ Query::
6039+ +
6040+ [source,cypher]
6041+ ----
6042+ DEFINE FUNCTION reverse() = "!dlrow olleh"
6043+ ----
6044+ Description of the returned code::
6045+ Local function `reverse` shadows built-in or external function of the same name.
6046+
6047+ Suggestions for improvement::
6048+ Rename the local function to avoid shadowing, e.g., by putting it in a separate namespace:
6049+ +
6050+ [source, cypher, role="noplay"]
6051+ ----
6052+ DEFINE FUNCTION my.reverse() = "!dlrow olleh"
6053+ ----
6054+ ======
6055+ =====
6056+
6057+
59216058//Add new notification above this section. //// //// //// //// //// //// ////
59226059ifndef::backend-pdf[]
59236060[discrete.glossary]
0 commit comments