Permalink
Browse files

Removing redundant single-quote escape logic

Resolves #3
  • Loading branch information...
1 parent c2776d5 commit a8b62329850f164d2cde580443e4bdcf8a19eae6 @jakefeasel committed Mar 14, 2013
Showing with 11 additions and 1 deletion.
  1. +1 −1 ddl_builder/ddl_builder.js
  2. +10 −0 ddl_builder/qunit/fixture.html
@@ -365,7 +365,7 @@ define(
if (!this.v.length || this.v.toUpperCase() == 'NULL')
return 'NULL';
if (colType == 'charType')
- return new Handlebars.SafeString("'" + this.v.replace(/'/g, "''") + "'");
+ return new Handlebars.SafeString("'" + this.v + "'");
if (colType == 'dateType') {
return new Handlebars.SafeString("'" + dateFormat("UTC:" + this.v, root.dateFormatMask) + "'");
@@ -122,6 +122,16 @@
April 5, 2010|2010-04-05 00:00:00
4/30/12 10:43|2012-04-30 10:43:00
</span>
+
+ <span id="withSingleQuotes" types="int,varchar(21)" valueSeparator="/\s+/" headers="CompId,CommaList" recordCount="4">
+ CompId CommaList
+ 2 '122','54','90'
+
+ 54 '53','76'
+ 34 '87'
+ 22 '98'
+ </span>
+
</div>
<!--

0 comments on commit a8b6232

Please sign in to comment.