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
In this method in QueryBuilder.Query.Insert.cs, the columnsList.Count and valuesList.Count cannot be compared as same values. It seems to be that the number of rows inserted must be the same as the number of column in the table.
Is it possible to fix it?
public Query AsInsert(IEnumerable<string>columns,IEnumerable<object>values){varcolumnsList= columns?.ToList();varvaluesList= values?.ToList();if((columnsList?.Count ??0)==0||(valuesList?.Count ??0)==0){thrownew InvalidOperationException($"{nameof(columns)} and {nameof(values)} cannot be null or empty");}if(columnsList.Count != valuesList.Count){thrownew InvalidOperationException($"{nameof(columns)} and {nameof(values)} cannot be null or empty");}Method="insert";
ClearComponent("insert").AddComponent("insert",new InsertClause
{Columns=columnsList,Values=valuesList});returnthis;}
The text was updated successfully, but these errors were encountered:
Hi,
In this method in QueryBuilder.Query.Insert.cs, the columnsList.Count and valuesList.Count cannot be compared as same values. It seems to be that the number of rows inserted must be the same as the number of column in the table.
Is it possible to fix it?
The text was updated successfully, but these errors were encountered: