diff --git a/sql/sql_partition.cc b/sql/sql_partition.cc
index 53536e729610552aac4d4c26323c855e795bc7cc..716a37f8907c8d8e99fe329cfb15f90829bd1324 100644
--- a/sql/sql_partition.cc
+++ b/sql/sql_partition.cc
@@ -2199,9 +2199,11 @@ static uint32 get_part_id_linear_key(partition_info *part_info,
     out:part_id         The partition id is returned through this pointer
 
   RETURN VALUE
-    part_id
-    return TRUE means that the fields of the partition function didn't fit
-    into any partition and thus the values of the PF-fields are not allowed.
+    part_id                     Partition id of partition that would contain
+                                row with given values of PF-fields
+    HA_ERR_NO_PARTITION_FOUND   The fields of the partition function didn't
+                                fit into any partition and thus the values of 
+                                the PF-fields are not allowed.
 
   DESCRIPTION
     A routine used from write_row, update_row and delete_row from any
@@ -2240,9 +2242,11 @@ static uint32 get_part_id_linear_key(partition_info *part_info,
     out:part_id         The partition id is returned through this pointer
 
   RETURN VALUE
-    part_id
-    return TRUE means that the fields of the partition function didn't fit
-    into any partition and thus the values of the PF-fields are not allowed.
+    part_id                     Partition id of partition that would contain
+                                row with given values of PF-fields
+    HA_ERR_NO_PARTITION_FOUND   The fields of the partition function didn't
+                                fit into any partition and thus the values of 
+                                the PF-fields are not allowed.
 
   DESCRIPTION