* Kurzbeschreibung : SQL-Funktionen fuer Queries *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009 - 2013 by Mailer Developer Team *
+ * Copyright (c) 2009 - 2016 by Mailer Developer Team *
* For more information visit: http://mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
}
// Wrapper function to make code more readable
-function ifSqlHasZeroNums ($result) {
+function ifSqlHasZeroNumRows ($result) {
// Just pass it through
return (sqlNumRows($result) === 0);
}
array($tableName), __FUNCTION__, __LINE__);
// Is a link there?
- if (!isValidSqlLink($result)) {
+ if (!isValidSqlResult($result)) {
// Is installation phase?
if (isInstaller()) {
// Then silently abort here
), __FUNCTION__, __LINE__);
// Is a link there?
- if (!isValidSqlLink($result)) {
+ if (!isValidSqlResult($result)) {
// Is installation phase?
if (isInstaller()) {
// Then silently abort here
} // END - if
// Determine it
- $doesExist = (!ifSqlHasZeroNums($result));
+ $doesExist = (!ifSqlHasZeroNumRows($result));
// Free result
sqlFreeResult($result);
$result = sqlQueryEscaped("SHOW INDEX FROM `%s`", array($tableName), __FUNCTION__, __LINE__);
// Is a link there?
- if (!isValidSqlLink($result)) {
+ if (!isValidSqlResult($result)) {
// Is installation phase?
if (isInstaller()) {
// Then silently abort here
$result = sqlQuery('SHOW ENGINES', __FUNCTION__, __LINE__);
// Are there entries? (Bad if not)
- if (!ifSqlHasZeroNums($result)) {
+ if (!ifSqlHasZeroNumRows($result)) {
// Load all and check for active entries
while ($content = sqlFetchArray($result)) {
// Debug message