mirror of
https://github.com/MariaDB/server.git
synced 2026-04-28 03:05:33 +02:00
merge with 5.3
sql/sql_insert.cc: CREATE ... IF NOT EXISTS may do nothing, but it is still not a failure. don't forget to my_ok it. ****** CREATE ... IF NOT EXISTS may do nothing, but it is still not a failure. don't forget to my_ok it. sql/sql_table.cc: small cleanup ****** small cleanup
This commit is contained in:
commit
76f0b94bb0
1705 changed files with 166479 additions and 39785 deletions
|
|
@ -748,7 +748,7 @@ int analyse::end_of_records()
|
|||
tmp_str.append(STRING_WITH_LEN(" NOT NULL"));
|
||||
output_str_length = tmp_str.length();
|
||||
func_items[9]->set(tmp_str.ptr(), tmp_str.length(), tmp_str.charset());
|
||||
if (result->send_data(result_fields))
|
||||
if (result->send_data(result_fields) > 0)
|
||||
return -1;
|
||||
continue;
|
||||
}
|
||||
|
|
@ -793,7 +793,7 @@ int analyse::end_of_records()
|
|||
if (!(*f)->nulls)
|
||||
ans.append(STRING_WITH_LEN(" NOT NULL"));
|
||||
func_items[9]->set(ans.ptr(), ans.length(), ans.charset());
|
||||
if (result->send_data(result_fields))
|
||||
if (result->send_data(result_fields) > 0)
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue