test-escape-id.js 321 B

12345678
  1. var SqlString = require('../../../lib/protocol/SqlString');
  2. var assert = require('assert');
  3. assert.equal('`id`', SqlString.escapeId('id'));
  4. assert.equal('`i``d`', SqlString.escapeId('i`d'));
  5. assert.equal('`id1`.`id2`', SqlString.escapeId('id1.id2'));
  6. assert.equal('`id``1`.`i``d2`', SqlString.escapeId('id`1.i`d2'));