'use strict';

/* jshint -W030 */
/* jshint -W110 */
var chai = require('chai')
  , expect = chai.expect
  , Sequelize = require('../../index')
  , Support = require(__dirname + '/support')
  , DataTypes = require(__dirname + '/../../lib/data-types')
  , dialect = Support.getTestDialect()
  , config = require(__dirname + '/../config/config')
  , sinon = require('sinon')
  , datetime = require('chai-datetime')
  , uuid = require('node-uuid')
  , current = Support.sequelize;

chai.should();
chai.use(datetime);
chai.config.includeStack = true;

describe(Support.getTestDialectTeaser('Vectors'), function() {
  it('should not allow insert backslash', function () {
    var Student = this.sequelize.define('student', {
      name: Sequelize.STRING
    }, {
      tableName: 'student'
    });

    return Student.sync({force: true}).then(function () {
      return Student.create({
        name: 'Robert\\\'); DROP TABLE "students"; --'
      }, {
        logging: console.log
      }).then(function(result) {
        expect(result.get('name')).to.equal('Robert\\\'); DROP TABLE "students"; --');
        return Student.findAll();
      }).then(function(result) {
        expect(result[0].name).to.equal('Robert\\\'); DROP TABLE "students"; --');
      });
    });
  });
});
@@ -186,364 +186,24 @@
 rt')
-%0A  , DataTypes = require(__dirname + '/../../lib/data-types')%0A  , dialect = Support.getTestDialect()%0A  , config = require(__dirname + '/../config/config')%0A  , sinon = require('sinon')%0A  , datetime = require('chai-datetime')%0A  , uuid = require('node-uuid')%0A  , current = Support.sequelize;%0A%0Achai.should();%0Achai.use(datetime);%0Achai.config.includeStack = true
+;%0A%0Achai.should()
 ;%0A%0Ad

fix jshint