[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdenonbeta/krecipes/src/DBBackend/MySQL
From: Jason Kivlighn <confederacy2 () excite ! com>
Date: 2003-12-15 1:17:21
[Download RAW message or body]
CVS commit by jkivlighn:
Use isEmpty()
M +1 -1 mysqlrecipedb.cpp 1.49
--- kdenonbeta/krecipes/src/DBBackend/MySQL/mysqlrecipedb.cpp #1.48:1.49
@@ -1505,5 +1505,5 @@ void MySQLRecipeDB::givePermissions(cons
QString command;
-if ((password!="")&&(password!=QString::null)) command=QString("GRANT ALL ON %1.* TO \
%2@%3 IDENTIFIED BY '%4';").arg(dbName).arg(username).arg(clientHost).arg(password); \
+if ( !password.isEmpty() ) command=QString("GRANT ALL ON %1.* TO %2@%3 IDENTIFIED BY \
'%4';").arg(dbName).arg(username).arg(clientHost).arg(password); else \
command=QString("GRANT ALL ON %1.* TO \
%2@%3;").arg(dbName).arg(username).arg(clientHost);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic