summaryrefslogtreecommitdiff
path: root/sql/parse_file.cc
diff options
context:
space:
mode:
authorunknown <anozdrin/alik@ibm.>2007-04-06 18:56:39 +0400
committerunknown <anozdrin/alik@ibm.>2007-04-06 18:56:39 +0400
commit9bc5135f81f1ab34175b4c70f660c2ad15fa4711 (patch)
tree1828fd526c042e8e48fcc988ac497eff9728c6de /sql/parse_file.cc
parent1895cdb34d52c5a4b03bc73b670500591ccac379 (diff)
downloadmariadb-git-9bc5135f81f1ab34175b4c70f660c2ad15fa4711.tar.gz
Polishing: add comments.
sql/parse_file.cc: Add comments.
Diffstat (limited to 'sql/parse_file.cc')
-rw-r--r--sql/parse_file.cc15
1 files changed, 13 insertions, 2 deletions
diff --git a/sql/parse_file.cc b/sql/parse_file.cc
index 1351cf66161..aa352433141 100644
--- a/sql/parse_file.cc
+++ b/sql/parse_file.cc
@@ -719,14 +719,18 @@ nlist_err:
/*
parse parameters
-
+
SYNOPSIS
File_parser::parse()
base base address for parameter writing (structure like
TABLE)
mem_root MEM_ROOT for parameters allocation
parameters parameters description
- required number of required parameters in above list
+ required number of parameters in the above list. If the file
+ contains more parameters than "required", they will
+ be ignored. If the file contains less parameters
+ then "required", non-existing parameters will
+ remain their values.
hook hook called for unknown keys
hook_data some data specific for the hook
@@ -909,6 +913,13 @@ list_err:
}
}
}
+
+ /*
+ NOTE: if we read less than "required" parameters, it is still Ok.
+ Probably, we've just read the file of the previous version, which
+ contains less parameters.
+ */
+
DBUG_RETURN(FALSE);
}