A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/signumsoftware/framework/commit/f877341021c4bec78d232aa71c0288d838e303d2 below:

fix INSERT in Postgres · signumsoftware/framework@f877341 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+1

-1

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+1

-1

lines changed Original file line number Diff line number Diff line change

@@ -78,7 +78,7 @@ public static int InsertView<T>(this T viewObject) where T : IView

78 78

var view = schema.View<T>();

79 79

var parameters = view.GetInsertParameters(viewObject);

80 80 81 -

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

81 +

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

82 82

VALUES ({parameters.ToString(p => p.ParameterName, ", ")})";

83 83 84 84

return Executor.ExecuteNonQuery(sql, parameters);

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4