Skip to content

Drivers should use const char* on the queries sql #2869

@cvvergara

Description

@cvvergara

From #2868 (comment)

edges_sql should be const char *
And all other queries that are passed.

The function never mutates the string literal pointed to by edges_sql,
yet the parameter is declared char *.
Changing to const char*:

-        char *edges_sql,
+        const char *edges_sql,

makes intent explicit and prevents accidental writes in future edits.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions