You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/acceptance/app.test.js
+109Lines changed: 109 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1116,6 +1116,115 @@ test('timezone info in JSON output', function(done){
1116
1116
);
1117
1117
});
1118
1118
1119
+
// WARNING and NOTICE in JSON output
1120
+
// See https://github.com/CartoDB/CartoDB-SQL-API/issues/104
1121
+
test('notice and warning info in JSON output',function(done){
1122
+
Step(
1123
+
functionaddRaiseFunction(){
1124
+
varnext=this;
1125
+
assert.response(app,{
1126
+
url: '/api/v1/sql?'+querystring.stringify({
1127
+
q: "create or replace function raise(lvl text, msg text) returns void as $$ begin if lvl = 'notice' then raise notice '%', msg; elsif lvl = 'warning' then raise warning '%', msg; else raise exception '%', msg; end if; end; $$ language plpgsql;",
0 commit comments