[Groonga-commit] groonga/groonga at a3f303f [master] Fix a regression bug that JSONP doesn't work

Back to archive index

Kouhei Sutou null+****@clear*****
Sat Mar 28 13:35:40 JST 2015


Kouhei Sutou	2015-03-28 13:35:40 +0900 (Sat, 28 Mar 2015)

  New Revision: a3f303f71421c430219a09f8add514abe9ba28be
  https://github.com/groonga/groonga/commit/a3f303f71421c430219a09f8add514abe9ba28be

  Message:
    Fix a regression bug that JSONP doesn't work
    
    It was introduced in 4.1.1.
    
    Groonga Admin doesn't work by the bug.

  Added files:
    test/command/suite/response/jsonp.expected
    test/command/suite/response/jsonp.test
  Modified files:
    lib/command.c

  Modified: lib/command.c (+1 -1)
===================================================================
--- lib/command.c    2015-03-28 00:41:29 +0900 (b0f7522)
+++ lib/command.c    2015-03-28 13:35:40 +0900 (e4be0d1)
@@ -57,7 +57,7 @@ grn_command_input_close(grn_ctx *ctx, grn_command_input *input)
   GRN_API_ENTER;
 
   /* TODO: Free input->arguments by self. */
-  grn_expr_clear_vars(ctx, input->command);
+  /* grn_expr_clear_vars(ctx, input->command); */
   GRN_FREE(input);
 
   GRN_API_RETURN(ctx->rc);

  Added: test/command/suite/response/jsonp.expected (+4 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/response/jsonp.expected    2015-03-28 13:35:40 +0900 (d5ab755)
@@ -0,0 +1,4 @@
+table_create Logs TABLE_NO_KEY
+[[0,0.0,0.0],true]
+/d/select.json?table=Logs&callback=func
+func([[0,0.0,0.0],[[[0],[["_id","UInt32"]]]]]);

  Added: test/command/suite/response/jsonp.test (+3 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/response/jsonp.test    2015-03-28 13:35:40 +0900 (440a65e)
@@ -0,0 +1,3 @@
+table_create Logs TABLE_NO_KEY
+
+/d/select.json?table=Logs&callback=func
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index