Aleksey Midenkov
84b718ae70
SQL: derived SYSTEM_TIME clash detection [ closes #371 ]
2017-12-08 16:26:17 +03:00
Sergei Golubchik
d04063c5b9
SQL: revert unnecessary change
...
Related to VIEW fix #4 (8e12edbcc74685175d20729958c5f6a5d09e4f9c)
2017-12-08 16:26:17 +03:00
Sergei Golubchik
b3fe45bcd4
rephrase error messages, fix quoting
2017-12-08 16:26:17 +03:00
Sergei Golubchik
903be4e6be
remove my_error_as and one unnecessary error message
2017-12-08 16:26:16 +03:00
Sergei Golubchik
f4270fc544
s/Delete_versioning_rows_priv/Truncate_versioning_priv/
...
because the statement is TRUNCATE, not DELETE
2017-12-08 16:26:16 +03:00
Sergei Golubchik
ea1ccfa500
SQL: regression fix: make NOW a valid identifier again [ #363 ]
...
* again, as in 10.2, NOW is a keyword only if followed by parentheses
* use AS OF CURRENT_TIMESTAMP or AS OF NOW()
* AS OF CURRENT_TIMESTAMP and AS OF NOW() mean AS OF NOW(6),
not AS OF NOW(0), (same behavior as in a DEFAULT clause)
2017-12-08 16:24:56 +03:00
Sergei Golubchik
d3845132fc
remove 'vers_auto_decrement'
...
Do not generate fake values when adding an auto-inc column to a versioned
table. This is not a auto-inc issue, but a more general case of adding
a not nullalble unique column to a table with history. We don't support
it yet, not even with a special auto-inc hack. As a workaround, one
can use a nullable unique column, that works.
2017-12-05 18:01:43 +03:00
Sergei Golubchik
6a7911d4c8
has_vers_fields should be calculated per table, not globally
2017-12-05 17:57:06 +03:00
Sergei Golubchik
9d2f1ddee7
remove BOOL
...
use num as the rest of the parser
2017-12-05 17:57:06 +03:00
Sergei Golubchik
a46f585aa7
restore Field::get_timestamp() prototype
2017-12-05 17:57:06 +03:00
Sergei Golubchik
30841c0382
Revert "Parser: no implicit NOT NULL for system fields [ fixes #163 ]"
...
This reverts commit 1cfdff5fe3c0044fa08adf5da9088dc46cc646db.
Fix it differently.
Cleanup, test results didn't change.
2017-12-05 17:48:17 +03:00
Sergei Golubchik
e60da371d1
fix versioning tests not to fail w/o innodb
2017-12-05 17:46:01 +03:00
Sergei Golubchik
8dd84ec7f3
versioning/common.inc must "have_innodb"
...
because it'll fail to start without it
2017-12-05 17:42:27 +03:00
Sergei Golubchik
69e4062cc7
Remove capture_warnings.sh and print_warnings.cmake
...
This is a separate feature, unrelated to system versioning
We may keep it or not, but either way, it's a separate discussion,
if we keep it, it won't be in the system versioning branch
2017-12-05 15:10:28 +03:00
Sergei Golubchik
3198bc839d
Parser: unreserve keywords
...
SELECT * FROM t1 FOR SYSTEM_TIME AS OF ...
becomes ambiguous, but it's the same as with
SELECT ... UNION SELECT ... ORDER BY ...
2017-12-05 15:09:09 +03:00
Aleksey Midenkov
6ac773421f
SQL: WHERE cond freed prematurely for PS [ #365 bug 10]
...
Applicable to vanilla version.
Applies to Item_cond_and, etc.: items with allocating copy_andor_structure().
Tests affected (forced mode):
main.subselect_sj
main.subselect_sj_jcl6
2017-12-05 14:32:34 +03:00
Aleksey Midenkov
3d88a72f76
SQL: fix subquery not a derived table [ #365 bug 9]
...
Tests affected (forced mode):
main.ps \
main.user_var \
main.myisam_explain_non_select_all \
main.opt_tvc \
main.subselect \
main.subselect_no_exists_to_in \
main.derived \
main.derived_opt \
main.update
2017-12-05 14:32:33 +03:00
Aleksey Midenkov
56adced376
SQL,IB: REPLACE semantics [ #365 bug 8]
2017-12-04 13:19:37 +03:00
Marko Mäkelä
f489865558
SQL: Clarify a FIXME comment on TR_table in ha_commit_trans()
2017-12-04 10:57:24 +03:00
Marko Mäkelä
92d6bd7208
Minor InnoDB cleanup (follow-up to #337 )
2017-12-04 10:50:33 +03:00
Aleksey Midenkov
5bf14f93a4
Tests: fix combinations
2017-12-04 00:49:44 +03:00
Aleksey Midenkov
68e160fb25
Tests: removed common.inc from results
2017-12-04 00:49:44 +03:00
Aleksey Midenkov
ce78bafe7a
MTR: MTR_COMBINATIONS envvar for tests
...
MTR_COMBINATIONS contains comma-separated list of currently applied
combinations "x,y,...". MTR_COMBINATION_X, MTR_COMBINATION_Y, ... are
set to 1 for this list of combinations.
Fixed dead check: non-existent element $tinfo->{combination}.
Better use this clause:
use warnings FATAL => 'uninitialized';
But this must be very well tested.
2017-12-04 00:49:24 +03:00
Aleksey Midenkov
36c0bec2c7
IB: remove alloc on update
2017-12-03 17:58:56 +03:00
Aleksey Midenkov
70b82f641c
SQL: duplicate of historical row fix [ #365 bug 7]
...
Tests affected (forced mode):
main.type_timestamp
2017-12-02 19:52:27 +03:00
Eugene Kosov
a3802ecb58
IB: assertion failure on delete with foreign [ #366 ]
2017-12-02 12:54:32 +03:00
Aleksey Midenkov
5c820a7125
SQL: create_like_table strip versioning for tmp tables [ #365 bug 6]
...
Tests affected (forced versioning):
rpl.rpl_row_merge_engine
2017-12-01 12:21:49 +03:00
Aleksey Midenkov
b9225bb52c
SQL: outdated select_lex->where fix [ #365 bug 5]
...
Affected tests (forced mode):
main.index_merge_myisam
After optimization versioning AND takes operands from WHERE AND
leaving `select_lex->where` as empty dangling AND.
2017-11-30 23:23:21 +03:00
Aleksey Midenkov
e4b86780ae
SQL: optimized transformer fix [ #365 bug 4]
...
Affected tests (forced mode):
main.win
main.selectivity_innodb
main.subselect_cache
main.analyze_stmt_orderby
Related to #226 (909867d014 ).
2017-11-30 08:31:38 +03:00
Aleksey Midenkov
2305666a05
SQL: insert delayed fix [ #365 bug 3]
...
Affected tests (forced mode): rpl.rpl_timezone
2017-11-29 11:58:18 +03:00
Aleksey Midenkov
8d548f8e86
SQL: fill_record() field-value inconsistency fix [ #365 bug 2]
...
Affected tests (forced mode): binlog_encryption.encrypted_slave
2017-11-29 10:48:14 +03:00
Aleksey Midenkov
47ea526efa
IB: get template with virtual columns [ #365 bug 1]
...
Affected tests (forced mode): binlog_encryption.encrypted_slave
2017-11-29 10:48:10 +03:00
Aleksey Midenkov
f924a94d2f
SQL: disable versioned DML for transaction_registry=off [ closes #364 ]
2017-11-28 18:38:54 +03:00
Eugene Kosov
dcc00d2be3
IB: combine is_delete, vers_delete into enum [ closes #337 ]
2017-11-28 15:03:25 +03:00
Aleksey Midenkov
f826f1249b
Tests: suppress tinyint error for ppc64le [ #347 ]
2017-11-28 14:21:00 +03:00
Eugene Kosov
8eac050440
Tests: revert unneded changes
2017-11-28 11:40:13 +03:00
Marko Mäkelä
219280392e
Cleanup: Do not add a parameter to row_update_for_mysql()
...
row_prebuilt_t::versioned_write: Cache the value of TABLE::versioned_write()
in ha_innobase::build_template()
2017-11-28 11:32:12 +03:00
Marko Mäkelä
3fdd9c1ccc
Correct a comment
2017-11-28 11:32:11 +03:00
Aleksey Midenkov
86b590c064
SQL: hide system fields from PK [ #361 ]
2017-11-27 21:44:34 +03:00
Aleksey Midenkov
f9d875d212
SQL: disable engine change [ fixes #358 ]
2017-11-27 19:48:36 +03:00
Aleksey Midenkov
ababd6a935
SQL: destroy Vers_min_max_stats [ #346 ]
2017-11-27 18:28:56 +03:00
Aleksey Midenkov
941e8b7b0b
Tests: suppression for innodb.log_corruption
2017-11-27 16:38:43 +03:00
Marko Mäkelä
9b6a790660
Use the FORCE to avoid trouble with vtmd_template [ #356 ]
2017-11-27 16:32:01 +03:00
Aleksey Midenkov
1e3620cc39
Tests: commit_id, truncate for Windows fix [ #307 ]
2017-11-27 16:31:18 +03:00
Aleksey Midenkov
aeee150656
SQL: switch_defaults_to_nullable_trigger_fields() fix [ #355 ]
2017-11-27 15:07:35 +03:00
Aleksey Midenkov
7fab5ecabb
Tests: enable disabled tests [ closes #341 ]
2017-11-27 15:07:34 +03:00
Eugene Kosov
01a8bad897
SQL: allow PERIOD as identifier [ fixes #331 ]
2017-11-27 15:07:34 +03:00
Eugene Kosov
62470fc787
SQL: recreate PRIMARY KEY on DROP SYSTEM VERSIONING [ #348 ]
2017-11-27 15:07:34 +03:00
Aleksey Midenkov
0c571f8c4e
SQL: versioning_alter_history ERROR mode [ closes #350 ]
...
Disabled DROP and SURVIVE modes.
2017-11-27 15:07:34 +03:00
Aleksey Midenkov
7320c683b9
Parser: disable SV for tmp tables [ closes #344 ]
2017-11-27 15:07:33 +03:00