[Groonga-commit] groonga/grnxx at 80654a2 [master] Fix comments to Table::insert_row().

Back to archive index

susumu.yata null+****@clear*****
Mon Jul 14 18:20:31 JST 2014


susumu.yata	2014-07-14 18:20:31 +0900 (Mon, 14 Jul 2014)

  New Revision: 80654a213280c149c381d2cbe65337b6ab458b35
  https://github.com/groonga/grnxx/commit/80654a213280c149c381d2cbe65337b6ab458b35

  Message:
    Fix comments to Table::insert_row().

  Modified files:
    include/grnxx/table.hpp

  Modified: include/grnxx/table.hpp (+5 -6)
===================================================================
--- include/grnxx/table.hpp    2014-07-14 15:37:44 +0900 (173e0f3)
+++ include/grnxx/table.hpp    2014-07-14 18:20:31 +0900 (78c8e39)
@@ -117,14 +117,13 @@ class Table {
 
   // Insert a row.
   //
-  // If "request_row_id" is valid, inserts a row identified by
-  // "request_row_id".
-  // If "key" is valid, inserts a row identified by "key".
-  // If both are invalid, the next row ID is allocated.
+  // If "request_row_id" specifies an unused row ID, uses the row ID.
+  // If the table has a key column, "key" is used as the key of the new row.
+  // If "request_row_id" == NULL_ROW_ID, an unused row ID or max_row_id() + 1
+  // is allocated for the new row.
   //
-  // Fails if "request_row_id" is valid and points to an existing row.
+  // Fails if "request_row_id" specifies an existing row.
   // Fails if the table has a key column and "key" is invalid.
-  // Fails if the table does not have a key column and "key" is valid.
   //
   // On success, stores the inserted row ID into "*result_row_id".
   // On failure, if "request_row_id" or "key" matches an existing row,
-------------- next part --------------
HTML����������������������������...
Descargar 



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