Skip to content

Conversation

@lins-dev
Copy link

The problem occurs when a querybuilder is assembled for postgresql, since part of the code was dependent on Mysql, added some changes were made so that it accepts both MySQL and PostgreSQL.

The problem occurs when a querybuilder is assembled for postgresql, since part of the code was dependent on Mysql, added some changes were made so that it accepts both MySQL and PostgreSQL.
} else {
$query = $model::selectRaw('HOUR('.$xAxisColumn.') AS cat, HOUR('.$xAxisColumn.') AS catorder, sum('.$calculation.') counted'.$seriesSql);
if($connectionName == 'pgsql'){
//$query = $model::selectRaw('HOUR('.$xAxisColumn.') AS cat, HOUR('.$xAxisColumn.') AS catorder, sum('.$calculation.') counted'.$seriesSql);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove this comment @superior27 ? Thankyou

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, sorry for have made you wait.
I removed this comment.

Remove comment in line 137
Copy link
Author

@lins-dev lins-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove commits in code.

} else {
$query = $model::selectRaw('HOUR('.$xAxisColumn.') AS cat, HOUR('.$xAxisColumn.') AS catorder, sum('.$calculation.') counted'.$seriesSql);
if($connectionName == 'pgsql'){
//$query = $model::selectRaw('HOUR('.$xAxisColumn.') AS cat, HOUR('.$xAxisColumn.') AS catorder, sum('.$calculation.') counted'.$seriesSql);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, sorry for have made you wait.
I removed this comment.

@lins-dev lins-dev closed this May 22, 2023
@lins-dev lins-dev reopened this May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants