check for correct quoting of multiple singlequotes

pull/11081/head
Sven Klemm 7 years ago
parent 70daa56a31
commit a87b27c7d3
  1. 1
      public/app/plugins/datasource/postgres/specs/datasource.test.ts

@ -230,6 +230,7 @@ describe('PostgreSQLDatasource', function() {
it('should return a quoted value', () => {
ctx.variable.multi = true;
expect(ctx.ds.interpolateVariable("a'bc", ctx.variable)).toEqual("'a''bc'");
expect(ctx.ds.interpolateVariable("a'b'c", ctx.variable)).toEqual("'a''b''c'");
});
});

Loading…
Cancel
Save