-
Hi I'm experimenting with the Rust SDK and noticed an unexpected behaviour. The following example code as provided by the documentation works: let response = db.query("CREATE user SET name = $name")
.bind(("name", "John Doe"))
.await?; Replace the query with a let response = db
.query("DEFINE NAMESPACE $name")
.bind(("name", "testspace"))
.await?; The error looks as follow:
I'm not excluding the possibility that this is by design. Hence I did not yet file a bug report. Could you please explain why this change in query makes a difference? Is this a wanted result or does this warrant a bug report? Even if this behaviour is correct a more clear error message (e.g. Thanks a lot for clarification. Roman |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi Roman, Yes, this is a current limitation of the define statement. There is a feature request for this #1911. |
Beta Was this translation helpful? Give feedback.
Hi Roman,
Yes, this is a current limitation of the define statement. There is a feature request for this #1911.