Skip to content

Commit

Permalink
v2.42.0
Browse files Browse the repository at this point in the history
Enhancement: Change namespace ::class to use classname in string so that
KoolReport is compatible with PHP 5.4
Fixed: PdoDataSource: Fix charset issue with PostgreSQL
  • Loading branch information
koolphp committed Mar 19, 2018
1 parent 03c0c61 commit 8ae0551
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "koolphp/koolreport",
"version":"2.41.3",
"version":"2.42.0",
"description": "An Open Source PHP Reporting Framework for easier and faster report delivery.",
"keywords": ["php reporting framework","php reporting tools","data processing","data visualization","charts and graphs"],
"homepage": "https://www.koolreport.com",
Expand Down
8 changes: 6 additions & 2 deletions koolreport/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
# Version 2.33.1
# Version 2.42.0
1. Change namespace `::class` to use classname in string so that `KoolReport` is compatible with PHP 5.4
2. `PdoDataSource`: Fix `charset` issue with `PostgreSQL`

# Version 2.41.3
1. Adding `AccumulativeColumn` to generate accumulative column.
2. Fix Group process for not counting records correctly.
3. Enhance the `autoload` of KoolReport
4. A bundle of small fixes

# Version 2.32.8
1. Revert back to previous parambinding of PDODataSource
1. Revert back to previous param binding of PDODataSource


# Version 2.31.7
Expand Down
4 changes: 2 additions & 2 deletions koolreport/composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "KoolReport",
"version":"2.41.3",
"version":"2.42.0",
"description": "An Open Source PHP Reporting Framework for easier and faster report delivery",
"keywords": ["php reporting framework","php reporting tools","data reporting","charts and graphs"],
"homepage": "https://www.koolreport.com",
Expand All @@ -12,4 +12,4 @@
"homepage": "https://www.koolphp.net"
}
]
}
}
4 changes: 2 additions & 2 deletions koolreport/core/Widget.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,11 @@ protected function useDataSource($scope=null)
));
}
}
else if(is_a($dataSource,DataStore::class))
else if(is_a($dataSource,'koolreport\core\DataStore'))
{
$this->dataStore = $dataSource;
}
else if(is_a($dataSource,DataSource::class)||is_a($dataSource,Process::class))
else if(is_a($dataSource,'koolreport\core\DataSource')||is_a($dataSource,'koolreport\core\Process'))
{
$this->dataStore = $this->onFurtherProcessRequest($dataSource)->pipe(new DataStore($this->getReport()));
}
Expand Down
2 changes: 1 addition & 1 deletion koolreport/datasources/PdoDataSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ protected function onInit()
}
if($charset)
{
$this->connection->exec("set names $charset");
$this->connection->exec("set names '$charset'");
}
}

Expand Down

0 comments on commit 8ae0551

Please sign in to comment.