[Groonga-commit] groonga/gcs [master] Specify columns correctly

Back to archive index

null+****@clear***** null+****@clear*****
2012年 7月 6日 (金) 16:13:08 JST


SHIMODA Hiroshi	2012-07-06 16:13:08 +0900 (Fri, 06 Jul 2012)

  New Revision: f55384a50b9d81062f2a4840fec669f538a258c0
  https://github.com/groonga/gcs/commit/f55384a50b9d81062f2a4840fec669f538a258c0

  Log:
    Specify columns correctly

  Modified files:
    lib/batch/processor.js

  Modified: lib/batch/processor.js (+2 -2)
===================================================================
--- lib/batch/processor.js    2012-07-06 16:09:57 +0900 (8adf9a4)
+++ lib/batch/processor.js    2012-07-06 16:13:08 +0900 (fb450a7)
@@ -33,7 +33,7 @@ Processor.prototype = {
     var errors = [];
     batches.forEach(function(batch) {
       if (batch.type == 'add') {
-        errors = errors.concat(this.validateAddBatch(batch));
+        errors = errors.concat(this.validateAddBatch(batch, columns));
       }
     }, this);
     if (errors.length) {
@@ -43,7 +43,7 @@ Processor.prototype = {
       throw error;
     }
   },
-  validateAddBatch: function(batch) {
+  validateAddBatch: function(batch, columns) {
     if (!batch.fields) {
       return [batch.id + ': You must specify "fields".'];
     }
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
下载 



Groonga-commit メーリングリストの案内
Back to archive index