[Groonga-commit] groonga/gcs [master] Report error for reserved field names only on creation

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Nov 21 19:54:35 JST 2012


YUKI Hiroshi	2012-11-21 19:54:35 +0900 (Wed, 21 Nov 2012)

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

  Log:
    Report error for reserved field names only on creation

  Modified files:
    lib/database/index-field.js

  Modified: lib/database/index-field.js (+1 -4)
===================================================================
--- lib/database/index-field.js    2012-11-21 19:52:15 +0900 (c705379)
+++ lib/database/index-field.js    2012-11-21 19:54:35 +0900 (346a5a6)
@@ -147,8 +147,6 @@ IndexField.prototype = {
       throw new ValidationError(prefix + errors.join('; '));
     }
 
-    assertNotReservedName(this.name);
-
     this.validateOptions();
 
     return this;
@@ -166,8 +164,6 @@ IndexField.prototype = {
       throw new ValidationError(prefix + errors.join('; '));
     }
 
-    assertNotReservedName(this.name);
-
     return this;
   },
 
@@ -434,6 +430,7 @@ IndexField.prototype = {
 
   createSync: function(multipleValues) {
     this.validate();
+    assertNotReservedName(this.name);
 
     var indexTableName = this.domain.termsTableName;
 
-------------- next part --------------
HTML����������������������������...
다운로드 



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