Skip to content

Commit

Permalink
改进pgsql驱动
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Mar 4, 2023
1 parent f405b53 commit 4457c03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/db/connector/Pgsql.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function getFields(string $tableName): array
'notnull' => (bool) ('' !== $val['null']),
'default' => $val['default'],
'primary' => !empty($val['key']),
'autoinc' => str_starts_with($val['extra'], 'nextval('),
'autoinc' => str_starts_with((string) $val['extra'], 'nextval('),
];
}
}
Expand Down

0 comments on commit 4457c03

Please sign in to comment.