Below is the list of changes that have just been committed into a local
5.0 repository of georg. When georg does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html
ChangeSet
1.1942 05/06/17 13:57:09 georg@stripped +1 -0
Added DBUG support for mysql_stmt_attr/set get.
Incl. fix from Kostja's review
libmysql/libmysql.c
1.218 05/06/17 13:57:04 georg@stripped +9 -5
Added DBUG support for mysql_stmt_attr/set get.
Incl. fix from Kostja's review
# This is a BitKeeper patch. What follows are the unified diffs for the
# set of deltas contained in the patch. The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User: georg
# Host: lmy002.wdf.sap.corp
# Root: /home/georg/work/mysql/prod/mysql-5.0
--- 1.217/libmysql/libmysql.c 2005-06-05 16:08:39 +02:00
+++ 1.218/libmysql/libmysql.c 2005-06-17 13:57:04 +02:00
@@ -2772,6 +2772,8 @@
enum enum_stmt_attr_type attr_type,
const void *value)
{
+ DBUG_ENTER("mysql_stmt_attr_set");
+
switch (attr_type) {
case STMT_ATTR_UPDATE_MAX_LENGTH:
stmt->update_max_length= value ? *(const my_bool*) value : 0;
@@ -2789,17 +2791,17 @@
{
ulong prefetch_rows= value ? *(ulong*) value : DEFAULT_PREFETCH_ROWS;
if (value == 0)
- return TRUE;
+ DBUG_RETURN(TRUE);
stmt->prefetch_rows= prefetch_rows;
break;
}
default:
goto err_not_implemented;
}
- return FALSE;
+ DBUG_RETURN(FALSE);
err_not_implemented:
set_stmt_error(stmt, CR_NOT_IMPLEMENTED, unknown_sqlstate);
- return TRUE;
+ DBUG_RETURN(TRUE);
}
@@ -2807,6 +2809,8 @@
enum enum_stmt_attr_type attr_type,
void *value)
{
+ DBUG_ENTER("mysql_stmt_attr_set");
+
switch (attr_type) {
case STMT_ATTR_UPDATE_MAX_LENGTH:
*(ulong*) value= stmt->update_max_length;
@@ -2818,9 +2822,9 @@
*(ulong*) value= stmt->prefetch_rows;
break;
default:
- return TRUE;
+ DBUG_RETURN(TRUE);
}
- return FALSE;
+ DBUG_RETURN(FALSE);
}
| Thread |
|---|
| • bk commit into 5.0 tree (georg:1.1942) | Georg Richter | 17 Jun |