diff options
Diffstat (limited to 'framework/Data')
-rw-r--r-- | framework/Data/TDbCommand.php | 2 | ||||
-rw-r--r-- | framework/Data/TDbConnection.php | 4 |
2 files changed, 1 insertions, 5 deletions
diff --git a/framework/Data/TDbCommand.php b/framework/Data/TDbCommand.php index 7ae32d17..91b165fa 100644 --- a/framework/Data/TDbCommand.php +++ b/framework/Data/TDbCommand.php @@ -257,7 +257,7 @@ class TDbCommand extends TComponent }
catch(Exception $e)
{
- throw new TDbException('dbcommand_queryscalar_failed',$e->getMessage());
+ throw new TDbException('dbcommand_query_failed',$e->getMessage());
}
}
}
diff --git a/framework/Data/TDbConnection.php b/framework/Data/TDbConnection.php index 9ca57a4a..acb1aec1 100644 --- a/framework/Data/TDbConnection.php +++ b/framework/Data/TDbConnection.php @@ -285,8 +285,6 @@ class TDbConnection extends TComponent return TDbColumnCaseMode::LowerCase;
case PDO::CASE_UPPER:
return TDbColumnCaseMode::UpperCase;
- default:
- throw new TDbException('dbconnection_columncase_unknown');
}
}
@@ -323,8 +321,6 @@ class TDbConnection extends TComponent return TDbNullConversionMode::EmptyStringToNull;
case PDO::NULL_TO_STRING:
return TDbNullConversionMode::NullToEmptyString;
- default:
- throw new TDbException('dbconnection_nullconversion_unknown');
}
}
|