@@ -174,12 +174,32 @@ class Connection {
174174 template <class T >
175175 rid_t call (const std::string &func, const T &args);
176176 rid_t ping ();
177+
178+
179+ /* *
180+ * Execute the SQL statement contained in the 'statement' parameter.
181+ * @param statement statement, which should conform to the rules for SQL grammar
182+ * @param parameters tuple for placeholders in the statement
183+ * @retval request id
184+ */
177185 template <class T >
178186 rid_t execute (const std::string& statement, const T& parameters);
179187
188+ /* *
189+ * Execute the SQL statement contained in the 'statement' parameter.
190+ * @param stmt_id the statement id obtained with prepare()
191+ * @param parameters tuple for placeholders in the statement
192+ * @retval request id
193+ */
180194 template <class T >
181195 rid_t execute (unsigned int stmt_id, const T& parameters);
182196
197+ /* *
198+ * Prepare the SQL statement contained in the 'statement' parameter.
199+ * The syntax and requirements for Connection::prepare() are the same as for Connection::execute().
200+ * @param statement statement, which should conform to the rules for SQL grammar
201+ * @retval request id
202+ */
183203 rid_t prepare (const std::string& statement);
184204
185205 void setError (const std::string &msg);
@@ -424,7 +444,6 @@ Connection<BUFFER, NetProvider>::execute(const std::string& statement, const T&
424444}
425445
426446template <class BUFFER , class NetProvider >
427- <<<<<<< HEAD
428447template <class T >
429448rid_t
430449Connection<BUFFER, NetProvider>::execute(unsigned int stmt_id, const T& parameters)
@@ -435,8 +454,6 @@ Connection<BUFFER, NetProvider>::execute(unsigned int stmt_id, const T& paramete
435454}
436455
437456template <class BUFFER , class NetProvider >
438- =======
439- >>>>>>> fc37e11... Client: prepare()
440457rid_t
441458Connection<BUFFER, NetProvider>::prepare(const std::string& statement)
442459{
0 commit comments