You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I totally think that the above API behaviour is too smart, the following should be better.
There is no basis that the query builder just assumes that DEFAULT VALUES is valid for the table either.
assert_eq!(Query::insert().into_table(Glyph::Table).or_default_values().to_string(PostgresQueryBuilder),"INSERT INTO \"glyph\" DEFAULT VALUES");assert_eq!(Query::insert().into_table(Glyph::Table).columns(vec![Glyph::Image]).values_panic(vec!["ABC".into()]).or_default_values().to_string(PostgresQueryBuilder),"INSERT INTO \"glyph\" (\"image\") VALUES ('ABC')");
I totally think that the above API behaviour is too smart, the following should be better.
There is no basis that the query builder just assumes that
DEFAULT VALUES
is valid for the table either.Originally posted by @tyt2y3 in #223 (comment)
The text was updated successfully, but these errors were encountered: