Commit Graph

8 Commits

Author SHA1 Message Date
lihongjian f60575a22b fix(tianmu):Master-slave replication, sql_mode MANDATORY_TIANMU has problems in some scenarios (#1090)
Add a scenario where no engine is specified when creating a table in the master database.
2022-12-13 09:17:34 +00:00
lihongjian b5222cccde feat(tianmu): To support Binlog in mandatory tianmu engine mode (#956)
The function of forcing the replacement engine to be tianmu only takes effect in the slave library
Step 1: First, you need to determine whether it is a slave database. This can be determined by whether (thread ->slave_thread) is true
According to the configuration of forced replacement: (sql_mode='MANDATORY_TIANMU ') and (default_storage_engine=tianmu)
Step 2: Determine whether the (sql_mode) and default engine are tianmu, and add (MANDATORY_TIANMU) this (sql_mode)
The above conditions can be judged in (mysql_execute_command)
2022-11-30 07:07:58 +00:00
hustjieke 19b9e36724 feat(handler): refactor code in handler module #890
[summary]
1. NULL-->nullptr
2. namespace "DBHandler"-->"handler"
3. class TianmuHandler-->ha_tianmu
4. sdb-->tianmu
5. functions in ha_my_tianmu.cpp all renamed with prefix "ha_my_tianmu_xxx"
6. add new enum 'QueryRouteTo' to replace magic number '0/1'
7. add new enum 'TableStatus' to replace magic number '0/1/-2'
2022-11-07 08:49:46 +00:00
hustjieke 8a28e28410 feat(tianmu): porting code from pr_758 to improve code #11
[summary]

NULL-->nullptr
namespace "DBHandler"-->"handler"
class TianmuHandler-->ha_tianmu
sdb-->tianmu
functions in ha_my_tianmu.cpp all renamed with prefix "ha_my_tianmu_xxx"
2022-11-02 02:57:13 +00:00
hustjieke eed32f6647
feat(tianmu): stonedb namespace to tianmu (#337)
[summary]
1. Change all engine stonedb to tianmu
2. Change SDB to tianmu
3. Also include mysql-test
4. Change file magic number to TianmuTB
2022-08-03 11:19:48 +08:00
hustjieke e405191378 feat(stonedb): upgrade stonedb to adapt mysql 5.7 #(141) 2022-07-06 16:25:29 +00:00
LiHongjian e20db9f38b
feat(stonedb): Header file format standardization (#36) (#105)
* feat(stonedb): Header file format standardization (#36)
2022-06-27 14:39:04 +08:00
hustjieke b872b63dbc feat(stonedb): init code(#1) 2022-06-10 15:30:04 +08:00