Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/Db/APIs/MySQL.php
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ public function insert(string $method, string $table, array $columns, array $dat
foreach ($data as $dataRow) {
if (\count($indexed_columns) !== \count($dataRow)) {
$this->error_backtrace(
'Invalid insert query. Requested columns does not match the number keys on inserted data.',
'Invalid insert query. Requested column count does not match the number of keys on inserted data.',
'',
E_USER_ERROR,
__FILE__,
Expand Down
2 changes: 1 addition & 1 deletion Sources/Db/APIs/PostgreSQL.php
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ public function insert(string $method, string $table, array $columns, array $dat
foreach ($data as $dataRow) {
if (\count($indexed_columns) !== \count($dataRow)) {
$this->error_backtrace(
'Invalid insert query. Requested columns does not match the number keys on inserted data.',
'Invalid insert query. Requested column count does not match the number of keys on inserted data.',
'',
E_USER_ERROR,
__FILE__,
Expand Down
2 changes: 1 addition & 1 deletion Sources/Db/DatabaseApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ public function getTypeIndicators(string $table_name, array $column_values): arr
// defined the way they are supposed to be, but that's fine since
// if the theoretical column type doesn't match the actual column
// type, we are doomed to run into errors anyway.
$table = Schema\Table::find($table_name, preg_replace('/^(\d+)\.(\d+)/', 'v$1_$2', SMF_VERSION));
$table = Schema\Table::find($table_name, preg_replace('/^(\d+)\.(\d+).*/', 'v$1_$2', SMF_VERSION));

if ($table instanceof Schema\Table) {
foreach ($table->columns as $col) {
Expand Down
Loading