[Groonga-commit] groonga/gcs [master] Convert column name to field name correctly

Back to archive index

null+****@clear***** null+****@clear*****
2012年 8月 9日 (木) 18:27:50 JST


SHIMODA Hiroshi	2012-08-09 18:27:50 +0900 (Thu, 09 Aug 2012)

  New Revision: 61fedc01df69e0c4cff7713eef04aab49a203d35
  https://github.com/groonga/gcs/commit/61fedc01df69e0c4cff7713eef04aab49a203d35

  Log:
    Convert column name to field name correctly

  Modified files:
    lib/database/domain.js

  Modified: lib/database/domain.js (+1 -5)
===================================================================
--- lib/database/domain.js    2012-08-09 18:14:17 +0900 (d37dabc)
+++ lib/database/domain.js    2012-08-09 18:27:50 +0900 (6cb6bbd)
@@ -169,11 +169,7 @@ Domain.prototype = {
     var columns = this.context.ordinalColumnsSync(this.tableName);
     columns = columns.sort(function(a, b) { return a.name - b.name; });
     var fields = columns.map(function(column) {
-                   // XXX The "name" must be the field name given by the user,
-                   // not normalized. Because there is no such information in the
-                   // context and currently the column name is luckily equals to the
-                   // given field name, we can use the column name.
-                   var name = column.name;
+                   var name = IndexField.toFieldName(column.name);
                    return this.getIndexField(name);
                  }, this);
     return fields;
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
Download 



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