diff --git a/frontend-hyrise/hyrise-sql-connector.js b/frontend-hyrise/hyrise-sql-connector.js index 35f6ea8..f63e917 100644 --- a/frontend-hyrise/hyrise-sql-connector.js +++ b/frontend-hyrise/hyrise-sql-connector.js @@ -14,7 +14,7 @@ HyriseSqlConnector.prototype.setConnectionDetails = function(host, port) { return this; }; -HyriseSqlConnector.prototype.executeQuery = function(query, callback) { +HyriseSqlConnector.prototype.executeQuery = function(query, callback, error_callback) { var endpoint = 'http://' + this._host + ':' + this._port + '/query'; var url = encodeURI(endpoint); @@ -28,7 +28,8 @@ HyriseSqlConnector.prototype.executeQuery = function(query, callback) { }, success: function(result) { callback(result); - } + }, + error: error_callback }); return this; diff --git a/frontend-hyrise/index.html b/frontend-hyrise/index.html index 82587ef..931a293 100644 --- a/frontend-hyrise/index.html +++ b/frontend-hyrise/index.html @@ -21,6 +21,11 @@ + +