Permalink
Browse files

Merge pull request #158 from eiu165/master

put [] around the table name in the CreateInsertCommand
  • Loading branch information...
2 parents 0726eb3 + ce1d125 commit e1206250d7e7742848b3ad88eb4a00dbb56ad325 @robconery robconery committed Dec 3, 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 e120625

Please sign in to comment.