Skip to content

Commit

Permalink
docs: update MySQL-specific example in UpdateStatement::from docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
the-wondersmith committed Dec 29, 2024
1 parent d4395e4 commit 854bec4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/query/update.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
use inherent::inherent;

use crate::{
backend::QueryBuilder,
expr::*,
Expand All @@ -8,7 +10,6 @@ use crate::{
QueryStatementBuilder, QueryStatementWriter, ReturningClause, SubQueryStatement, WithClause,
WithQuery,
};
use inherent::inherent;

/// Update existing rows in the table
///
Expand Down Expand Up @@ -99,7 +100,7 @@ impl UpdateStatement {
///
/// assert_eq!(
/// query.to_string(MysqlQueryBuilder),
/// "UPDATE `glyph` SET `tokens` = `character`.`character` FROM `character` WHERE `glyph`.`image` = `character`.`user_data`"
/// "UPDATE `glyph` JOIN `character` ON `glyph`.`image` = `character`.`user_data` SET `glyph`.`tokens` = `character`.`character`"
/// );
/// assert_eq!(
/// query.to_string(PostgresQueryBuilder),
Expand Down

0 comments on commit 854bec4

Please sign in to comment.