Skip to content

Commit

Permalink
【システム】SQLite運用環境で Undefined offset noticeが発生する fix #1544
Browse files Browse the repository at this point in the history
  • Loading branch information
yama committed Oct 1, 2020
1 parent d6fe6e4 commit 8220db0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Baser/Model/Datasource/Database/BcSqlite.php
Original file line number Diff line number Diff line change
Expand Up @@ -489,10 +489,12 @@ public function resultSet($results) {
$metaType = trim($metaData['sqlite:decl_type']);
}

// CUSTOMIZE MODIFY 2020/10/01 yamamoto
// SQLite運用環境で Undefined offset noticeが発生する #1544
// CUSTOMIZE ADD 2017/02/21 ryuring
// 型情報が取得できない問題を改善
// >>>
if($metaData[0] === false) {
if(!$metaType) {
if (strpos($columnName, '.')) {
list($table, $column) = explode('.', $columnName);
if(!empty($columnMeta[$table][$column]['type'])) {
Expand Down

0 comments on commit 8220db0

Please sign in to comment.