fluentpdo
fluentpdo copied to clipboard
Fatal error when perform getExecutionTime()
If there was error during query execution for example select of non existing coloumn, then calling of method getExecutionTime() will throw a fatal error: "Base::getExecutionTime() must be of the type float, null returned in ...\vendor\envms\fluentpdo\src\Queries\Base.php:322".
Is it normal? May it will be good to return 0 or null instead of Fatal Error. Or maybe delete this hard returning public function getExecutionTime(): float
Sorry, I didn't see this issue submitted before. I'll definitely look into it!
You're getting this error only when a query fails, correct?
You're getting this error only when a query fails, correct?
Yes.