Skip to content

Commit

Permalink
Handled escape for single quote in strings
Browse files Browse the repository at this point in the history
  • Loading branch information
frankabbruzzese committed May 30, 2017
1 parent fdac242 commit 46d3c7c
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mvcct-odata",
"version": "1.0.0",
"version": "1.0.1",
"description": "JavaScript OData client",
"main": "dest/umd/mvcct.odata.min.js",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion dest/es6/mvcct.odata.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dest/es6/mvcct.odata.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dest/global/mvcct.odata.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dest/global/mvcct.odata.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dest/global/mvcct.odata.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dest/global/mvcct.odata.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dest/umd/mvcct.odata.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dest/umd/mvcct.odata.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dest/umd/mvcct.odata.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dest/umd/mvcct.odata.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mvcct-odata",
"version": "1.0.0",
"version": "1.0.1",
"description": "JavaScript OData client",
"main": "dest/umd/mvcct.odata.min.js",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion proc/es6/mvcct.odata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@
if(this.dateTimeType == QueryValue.IsNotDateTime &&
typeof this.value == "string" &&
!this.isGuid()
) val = "'"+val+"'";
) val = "'"+val.replace(/'/g, "''")+"'";

switch(this.operator)
{
Expand Down
2 changes: 1 addition & 1 deletion proc/global/mvcct.odata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ namespace mvcct{
if(this.dateTimeType == QueryValue.IsNotDateTime &&
typeof this.value == "string" &&
!this.isGuid()
) val = "'"+val+"'";
) val = "'"+val.replace(/'/g, "''")+"'";

switch(this.operator)
{
Expand Down
2 changes: 1 addition & 1 deletion proc/umd/mvcct.odata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@
if(this.dateTimeType == QueryValue.IsNotDateTime &&
typeof this.value == "string" &&
!this.isGuid()
) val = "'"+val+"'";
) val = "'"+val.replace(/'/g, "''")+"'";

switch(this.operator)
{
Expand Down
2 changes: 1 addition & 1 deletion src/mvcct.odata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ namespace odata {
if(this.dateTimeType == QueryValue.IsNotDateTime &&
typeof this.value == "string" &&
!this.isGuid()
) val = "'"+val+"'";
) val = "'"+val.replace(/'/g, "''")+"'";

switch(this.operator)
{
Expand Down

0 comments on commit 46d3c7c

Please sign in to comment.