A Twitch.tv viewer reward and games system.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

7 lines
321 B

12 years ago
  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'));