diff --git a/libmysql/libmysql.c b/libmysql/libmysql.c index 93ae8c3cdd06ee7df5208beefe7f7c20c8c90da4..009a12574ce4a344991510563ba9c4249318e95e 100644 --- a/libmysql/libmysql.c +++ b/libmysql/libmysql.c @@ -2816,10 +2816,11 @@ my_bool STDCALL mysql_stmt_attr_get(MYSQL_STMT *stmt, { switch (attr_type) { case STMT_ATTR_UPDATE_MAX_LENGTH: + *(my_bool*) value= stmt->update_max_length; break; case STMT_ATTR_CURSOR_TYPE: *(ulong*) value= stmt->flags; - break; + break; case STMT_ATTR_PREFETCH_ROWS: *(ulong*) value= stmt->prefetch_rows; break;