Permalink
Browse files

Merge pull request #175 from randallsutton/sql-bug-insert-into

Knew this would happen.
  • Loading branch information...
2 parents e120625 + 9af35f9 commit 1e38d33062cb7518060a33b68cf1f722988e613d @robconery robconery committed Dec 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Massive.cs
View
@@ -424,7 +424,7 @@ private dynamic BuildPagedResult(string sql = "", string primaryKeyField = "", s
var settings = (IDictionary<string, object>)expando;
var sbKeys = new StringBuilder();
var sbVals = new StringBuilder();
- var stub = "INSERT INTO [{0}] ({1}) \r\n VALUES ({2})";
+ var stub = "INSERT INTO {0} ({1}) \r\n VALUES ({2})";
result = CreateCommand(stub, null);
int counter = 0;
foreach (var item in settings) {

0 comments on commit 1e38d33

Please sign in to comment.