var common = require('../../common');
var connection = common.createConnection();
var assert = require('assert');

var rows = undefined;

Date = function () {
  var NativeDate = Date;
  function CustomDate (str) {
    return new NativeDate(str);
  }
  CustomDate.now = Date.now;
  return CustomDate;
}();

connection.execute('SELECT UNIX_TIMESTAMP(?) t', [new Date('1990-08-08 UTC')], function (err, _rows, _fields) {
  if (err) {
    throw err;
  }
  rows = _rows;
  console.log(_rows, _fields);
  connection.end();
});


process.on('exit', function () {
  assert.deepEqual(rows, [{t: 650073600}]);
});

@@ -463,39 +463,8 @@
 ws;%0A
-  console.log(_rows, _fields);%0A
   co
@@ -531,13 +531,9 @@
 ert.
-deepE
+e
 qual
@@ -541,14 +541,14 @@
 rows
-, %5B%7Bt:
+%5B0%5D.t,
  650
@@ -557,10 +557,8 @@
 3600
-%7D%5D
 );%0A%7D

simplify test