From bd27909e1e53da262c15cb592349be1cc5e94b6b Mon Sep 17 00:00:00 2001 From: Federico Campoli Date: Sat, 1 Sep 2018 10:40:12 +0100 Subject: [PATCH] stamp 2.0.10 --- CHANGELOG.rst | 2 +- RELEASE_NOTES.rst | 3 ++- docs/conf.py | 4 ++-- parse.py | 2 +- setup.py | 2 +- 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 03ecfff4..88760f70 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,7 +1,7 @@ changelog ************************* -2.0.10 - XX Sep 2018 +2.0.10 - 01 Sep 2018 .......................................................... * Fix regression in new replay function with PostgreSQL 10 * Convert to string the dictionary entries pulled from a json field diff --git a/RELEASE_NOTES.rst b/RELEASE_NOTES.rst index 0287ad5c..03bfe681 100644 --- a/RELEASE_NOTES.rst +++ b/RELEASE_NOTES.rst @@ -11,7 +11,8 @@ This release fixes adds a workaround for decoding the keys in the mysql's json f The command ``enable_replica`` fixes a race condition when the maintenance flag is not returned to false (e.g. an application crash during the maintenance run) allowing the replica to start again. -The tokeniser for the ``CHANGE `` statement now parses the tables in the form of ``schema.table``. However the query's schema is not used as the replica method uses the schema name pulled out from the mysql's binlog. +The tokeniser for the ``CHANGE`` statement now parses the tables in the form of ``schema.table``. However the tokenised schema is not used to determine the +query's schema because the ``__read_replica_stream`` method uses the schema name pulled out from the mysql's binlog. As this change requires a replica catalogue upgrade is very important to follow the upgrade instructions provided below. diff --git a/docs/conf.py b/docs/conf.py index 41450ff0..39f8c855 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -65,9 +65,9 @@ # built documents. # # The short X.Y version. -version = u'2.0.9' +version = u'2.0.10' # The full version, including alpha/beta/rc tags. -release = u'v2.0.9' +release = u'v2.0.10' # The language for content autgenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/parse.py b/parse.py index 73066b45..e126695c 100755 --- a/parse.py +++ b/parse.py @@ -94,7 +94,7 @@ statement = """RENAME TABLE `sakila`.`test_partition` TO `sakila`.`_test_partition_old`, `_test_partition_new` TO `test_partition`;""" #statement="""ALTER TABLE foo MODIFY bar INT UNSIGNED DEFAULT NULL;""" #statement="""ALTER TABLE foo change bar bar INT UNSIGNED;""" -#statement="""alter table test change date_create_new date_create_new timestamp;""" +statement="""ALTER TABLE `some_sch`.`my_great_table` CHANGE COLUMN `IMEI` `IMEI` VARCHAR(255) NULL DEFAULT NULL COMMENT 'IMEI datatype changed'""" token_sql=sql_token() token_sql.parse_sql(statement) diff --git a/setup.py b/setup.py index d964f063..1deb9842 100644 --- a/setup.py +++ b/setup.py @@ -39,7 +39,7 @@ def readme(): setup( name="pg_chameleon", - version="2.0.9", + version="2.0.10", description="MySQL to PostgreSQL replica and migration", long_description=readme(), author = "Federico Campoli",