1
0
mirror of https://github.com/MariaDB/server.git synced 2025-10-21 08:47:42 +03:00
Files
mariadb/mysql-test/suite/funcs_1/t
Alexander Nozdrin 4333980a49 Patch for Bug#21818 (Return value of ROW_COUNT() is incorrect
for ALTER TABLE, LOAD DATA).

ROW_COUNT is now assigned according to the following rules:

  - In my_ok():
    - for DML statements: to the number of affected rows;
    - for DDL statements: to 0.

  - In my_eof(): to -1 to indicate that there was a result set.

    We derive this semantics from the JDBC specification, where int
    java.sql.Statement.getUpdateCount() is defined to (sic) "return the
    current result as an update count; if the result is a ResultSet
    object or there are no more results, -1 is returned".

  - In my_error(): to -1 to be compatible with the MySQL C API and
    MySQL ODBC driver.

  - For SIGNAL statements: to 0 per WL#2110 specification. Zero is used
    since that's the "default" value of ROW_COUNT in the diagnostics area.

sql/protocol.cc:
  Fix a typo.
sql/sql_class.h:
  - Introduce THD::get_row_count_func() / THD::set_row_count_func();
  - Remove the CF_HAS_ROW_COUNT define
sql/sql_parse.cc:
  CF_HAS_ROW_COUNT was eliminated.
2010-05-14 09:28:51 +04:00
..
2009-09-23 22:50:13 +04:00
2008-06-16 20:39:58 +02:00
2008-06-16 20:39:58 +02:00
2008-06-16 20:39:58 +02:00
2008-06-16 20:39:58 +02:00
2008-06-18 19:23:55 +02:00
2008-06-16 20:39:58 +02:00
2008-06-16 20:39:58 +02:00
2008-06-16 20:39:58 +02:00
2008-06-16 20:39:58 +02:00
2008-06-16 20:39:58 +02:00
2008-06-16 20:39:58 +02:00
2008-03-07 20:18:14 +01:00
2008-03-07 20:18:14 +01:00
2008-03-07 20:18:14 +01:00
2008-03-07 20:18:14 +01:00
2008-03-07 20:18:14 +01:00
2008-03-07 20:18:14 +01:00
2008-03-07 20:18:14 +01:00
2008-06-18 19:23:55 +02:00
2008-06-18 19:23:55 +02:00
2008-06-16 20:39:58 +02:00
2008-06-16 20:39:58 +02:00
2008-06-16 20:39:58 +02:00
2008-06-16 20:39:58 +02:00
2008-06-16 20:39:58 +02:00
2008-06-16 20:39:58 +02:00
2008-06-16 20:39:58 +02:00
2008-06-16 20:39:58 +02:00
2008-06-16 20:39:58 +02:00
2008-06-16 20:39:58 +02:00
2008-06-16 20:39:58 +02:00
2008-06-16 20:39:58 +02:00
2008-06-16 20:39:58 +02:00
2008-06-16 20:39:58 +02:00
2008-06-16 20:39:58 +02:00
2008-06-16 20:39:58 +02:00
2008-03-12 12:56:07 +01:00
2008-03-12 12:56:07 +01:00
2008-04-01 13:18:31 +02:00
2008-04-01 13:18:31 +02:00