summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorIvan Timofeev <timofeev.i.s@gmail.com>2011-12-17 16:18:53 +0400
committerIvan Timofeev <timofeev.i.s@gmail.com>2011-12-17 16:36:00 +0400
commit198a99861e14cf5c001177b1192cebfe4708ea05 (patch)
treec80d01b2f957342d51bea6ccacaabbe1bd8a77b5 /connectivity
parent1777c09a0781710c309e500f680e6f95c080ca86 (diff)
drop redundant always-true condition
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/mysql/YTable.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/connectivity/source/drivers/mysql/YTable.cxx b/connectivity/source/drivers/mysql/YTable.cxx
index 5cba2bcd6429..1dba6792e81f 100644
--- a/connectivity/source/drivers/mysql/YTable.cxx
+++ b/connectivity/source/drivers/mysql/YTable.cxx
@@ -271,7 +271,7 @@ void SAL_CALL OMySQLTable::alterColumnByName( const ::rtl::OUString& colName, co
if(!sNewDefault.isEmpty() && sOldDefault != sNewDefault)
alterDefaultValue(sNewDefault,colName);
}
- else if(sOldDefault.isEmpty() && !sNewDefault.isEmpty())
+ else if(!sNewDefault.isEmpty())
alterDefaultValue(sNewDefault,colName);
// now we should look if the name of the column changed