Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update crud.cs

  • Loading branch information...
commit 250955633af5f6561813e3cde41e3a430beb4c23 1 parent 2c403dc
@bjdixon authored
Showing with 0 additions and 2 deletions.
  1. +0 −2  crud.cs
View
2  crud.cs
@@ -101,7 +101,6 @@ public class CRUD {
public bool Update(string tableName, string[] columnNames, string[] insertValues, string condition) {
string columnsString = " SET ";
- //string valuesString = " Values (";
string query = "UPDATE " + tableName;
if (columnNames.Length != insertValues.Length) {
//check if the amount of columns and amount of values match. If not we'll return false without executing any sql.
@@ -116,7 +115,6 @@ public class CRUD {
//remove trailing commars
query += columnsString.Substring(0, columnsString.Length - 2);
query += " WHERE " + condition;
- //query += valuesString.Substring(0, valuesString.Length - 2) + ") ";
//open the connection
try {
CRUDconnection.Open();
Please sign in to comment.
Something went wrong with that request. Please try again.