[Groonga-commit] groonga/gcs [master] Forgot to update domain to field

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Nov 15 16:56:48 JST 2012


YUKI Hiroshi	2012-11-15 16:56:48 +0900 (Thu, 15 Nov 2012)

  New Revision: 021b6944b2ec3dc8d9f31ee18139e0e577e1e543
  https://github.com/groonga/gcs/commit/021b6944b2ec3dc8d9f31ee18139e0e577e1e543

  Log:
    Forgot to update domain to field

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

  Modified: lib/database/index-field.js (+5 -5)
===================================================================
--- lib/database/index-field.js    2012-11-15 16:56:00 +0900 (f74e14c)
+++ lib/database/index-field.js    2012-11-15 16:56:48 +0900 (b670b32)
@@ -34,14 +34,14 @@ function assertValidFieldName(field) {
   }
 
   var errors = [];
-  var commonPrefix = 'Value \'' + domain + '\' at \'indexFieldName\' failed ' +
+  var commonPrefix = 'Value \'' + field + '\' at \'indexFieldName\' failed ' +
                      'to satisfy constraint: ';
 
-  if (!domain.match(VALID_NAME_MATCHER)) {
+  if (!field.match(VALID_NAME_MATCHER)) {
     errors.push(commonPrefix + 'Member must satisfy regular ' +
                 'expression pattern: ' + VALID_NAME_PATTERN);
   } else {
-    var invalidCharacters = domain.match(INVALID_COLUMN_NAME_CHARACTERS_MATCHER);
+    var invalidCharacters = field.match(INVALID_COLUMN_NAME_CHARACTERS_MATCHER);
     if (invalidCharacters) {
       invalidCharacters = Array.prototype.slice.call(invalidCharacters, 0)
                             .map(function(aCharacter) {
@@ -52,11 +52,11 @@ function assertValidFieldName(field) {
     }
   }
 
-  if (domain.length < MINIMUM_NAME_LENGTH)
+  if (field.length < MINIMUM_NAME_LENGTH)
     errors.push(commonPrefix + 'Member must have length greater ' +
                 'than or equal to ' + MINIMUM_NAME_LENGTH);
 
-  if (domain.length > MAXIMUM_NAME_LENGTH)
+  if (field.length > MAXIMUM_NAME_LENGTH)
     errors.push(commonPrefix + 'Member must have length less ' +
                 'than or equal to ' + MAXIMUM_NAME_LENGTH);
 
-------------- next part --------------
HTML����������������������������...
Download 



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