[Groonga-commit] groonga/gcs [master] We have to save changes to apply modifications on the database

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Nov 21 17:48:29 JST 2012


YUKI Hiroshi	2012-11-21 17:48:29 +0900 (Wed, 21 Nov 2012)

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

  Log:
    We have to save changes to apply modifications on the database

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

  Modified: test/database-index-field.test.js (+8 -1)
===================================================================
--- test/database-index-field.test.js    2012-11-21 17:47:06 +0900 (025af3b)
+++ test/database-index-field.test.js    2012-11-21 17:48:29 +0900 (f1cd53b)
@@ -662,10 +662,11 @@ suite('database', function() {
       test('for non-existing field', function() {
         var product = new IndexField('product', domain);
         product.type = 'text';
+        product.saveSync();
         assert.equal(product.type, 'text');
         product.type = 'literal';
-        assert.equal(product.type, 'literal');
         product.saveSync();
+        assert.equal(product.type, 'literal');
       });
 
       test('for existing field (text to literal)', function() {
@@ -679,6 +680,7 @@ suite('database', function() {
         ]);
 
         field.type = 'literal';
+        field.saveSync();
         assert.equal(field.type, 'literal');
 
         var actualDump = field.domain.dumpSync();
@@ -700,6 +702,7 @@ suite('database', function() {
         ]);
 
         field.type = 'text';
+        field.saveSync();
         assert.isFalse(field.multipleValues);
         assert.equal(field.type, 'text');
 
@@ -723,6 +726,7 @@ suite('database', function() {
         ]);
 
         field.type = 'uint';
+        field.saveSync();
         assert.isFalse(field.multipleValues);
         assert.equal(field.type, 'uint');
 
@@ -746,6 +750,7 @@ suite('database', function() {
         ]);
 
         field.type = 'text';
+        field.saveSync();
         assert.isFalse(field.multipleValues);
         assert.equal(field.type, 'text');
 
@@ -769,6 +774,7 @@ suite('database', function() {
         ]);
 
         field.type = 'uint';
+        field.saveSync();
         assert.isFalse(field.multipleValues);
         assert.equal(field.type, 'uint');
 
@@ -793,6 +799,7 @@ suite('database', function() {
         ]);
 
         field.type = 'literal';
+        field.saveSync();
         assert.isFalse(field.multipleValues);
         assert.equal(field.type, 'literal');
 
-------------- next part --------------
HTML����������������������������...
Download 



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