Skip to content

Conversation

abolfazl-esmaeeli
Copy link

No description provided.

@abolfazl-esmaeeli
Copy link
Author

add INT8 to isNumber method

add microtime for primary key
@smhg
Copy link
Contributor

smhg commented Apr 30, 2025

Someone needs to confirm, but INT8 seems to be a valid Postgres type.
Thank you @abolfazl-esmaeeli.

Can you please rebase you PR and look at the changes in the review? Thanks!

return parent::preSave($con);
}
<?php endif?>
if ($this->isNew() && !$this->getId()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

These 3 lines seem to have been added to your commit by mistake. If so, can you please remove it?

public function isNumber(string $type): bool
{
$numbers = ['INTEGER', 'INT4', 'INT2', 'NUMBER', 'NUMERIC', 'SMALLINT', 'BIGINT', 'DECIMAL', 'REAL', 'DOUBLE PRECISION', 'SERIAL', 'BIGSERIAL'];
$numbers = ['INTEGER', 'INT4', 'INT2','INT8', 'NUMBER', 'NUMERIC', 'SMALLINT', 'BIGINT', 'DECIMAL', 'REAL', 'DOUBLE PRECISION', 'SERIAL', 'BIGSERIAL'];
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you please add a space before 'INT8' (like the other values have)? Thanks!

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