Update DB\AbstractStatement

This commit is contained in:
Visman 2021-12-16 16:51:23 +07:00
parent 0b5e9b77f0
commit 9c813d46cb

View file

@ -14,7 +14,6 @@ use ForkBB\Core\DBStatement;
use PDO;
use PDOStatement;
use PDOException;
use RuntimeException;
abstract class AbstractStatement extends DBStatement
{
@ -101,7 +100,7 @@ abstract class AbstractStatement extends DBStatement
case self::STRING:
break;
default:
throw new RuntimeException("Unknown field type: '{$types[$key]}'");
throw new PDOException("Unknown field type: '{$types[$key]}'");
}
}
}