Skip to content

Commit

Permalink
fix INSERT in Postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
olmobrutall committed Jan 27, 2020
1 parent fc07b9a commit f877341
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Signum.Engine/Database.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public static int InsertView<T>(this T viewObject) where T : IView
var view = schema.View<T>();
var parameters = view.GetInsertParameters(viewObject);

var sql = $@"INSERT {view.Name} ({view.Columns.ToString(p => p.Key.SqlEscape(schema.Settings.IsPostgres), ", ")})
var sql = $@"INSERT INTO {view.Name} ({view.Columns.ToString(p => p.Key.SqlEscape(schema.Settings.IsPostgres), ", ")})
VALUES ({parameters.ToString(p => p.ParameterName, ", ")})";

return Executor.ExecuteNonQuery(sql, parameters);
Expand Down

2 comments on commit f877341

@olmobrutall
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New Signum Framework Map in documentation

Checkout the new Signum Framework Architexture Map in https://github.com/signumsoftware/docs.

All the mayor classes, entities and react components are present, with links to the appropriate documentation page or source code file.

I hope this will help better understand how it works :)

@MehdyKarimpour
Copy link
Contributor

@MehdyKarimpour MehdyKarimpour commented on f877341 Jan 27, 2020 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.