-
-
Notifications
You must be signed in to change notification settings - Fork 327
update pgsql version to 18.0, php 8.5 to RC2 #916
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ibc and linking isn't done for static libraries yet
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, but it needs connection and runtime test. Will do later.
Works for me. <?php
$host = "localhost";
$db = "appdb";
$user = "appuser";
$pass = "strongpassword";
$dsn = "pgsql:host=$host;dbname=$db";
try {
$pdo = new PDO($dsn, $user, $pass, [
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION
]);
} catch (PDOException $e) {
die("Connection failed: " . $e->getMessage());
}
// Create table if not exists
$pdo->exec("
CREATE TABLE IF NOT EXISTS test_data (
id SERIAL PRIMARY KEY,
value TEXT NOT NULL
);
");
// Insert random data
$randomValue = bin2hex(random_bytes(8));
$stmt = $pdo->prepare("INSERT INTO test_data (value) VALUES (:val)");
$stmt->execute([':val' => $randomValue]);
// Select and print all rows
$stmt = $pdo->query("SELECT id, value FROM test_data ORDER BY id ASC");
$rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
header('Content-Type: text/plain');
foreach ($rows as $row) {
echo $row['id'] . " | " . $row['value'] . "\n";
}
?>
|
I refactored a few things for pgsql. Now it's compatible with internal SPCConfigUtil with no pain. For specific line patching, I found it could be disabled by just removing them, make it version-independent now. |
What does this PR do?
closes #757