Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
martykulma committed Feb 4, 2025
1 parent c2cc53e commit 31f732a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/mysql-util/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,7 @@ pub enum MySqlError {
MySql(#[from] mysql_async::Error),
}

/// Quotes MySQL identifiers
/// See https://github.com/mysql/mysql-sys/blob/master/functions/quote_identifier.sql
/// Quotes MySQL identifiers. [See MySQL quote_identifier()](https://github.com/mysql/mysql-sys/blob/master/functions/quote_identifier.sql)
pub fn quote_identifier(identifier: &str) -> String {
let mut escaped = identifier.replace("`", "``");
escaped.insert(0, '`');
Expand Down

0 comments on commit 31f732a

Please sign in to comment.