mirror of
https://github.com/hanzoai/datastore.git
synced 2026-09-26 13:55:07 +00:00
- Fix CLASSPATH regression in postgresql-java-client and mysql-java-client: add leading '.' so javac-compiled .class files are found at runtime - Downgrade MySQL Connector/J 9.2.0 → 8.4.0 to avoid 9.x breaking changes (useSSL=false removed, type mapping changes) - Revert mysql2 → mysql in JS client; test expects mysql package error message for sha256_password auth - Downgrade go-sql-driver/mysql v1.8.1 → v1.6.0 to preserve error message format (v1.7+ adds SQL state prefix breaking exact-match assertions) - Revert ClickHouse.Client 7.14.0 → 4.1.0 to match dotnet.reference output (type representations and date formats changed in major version jumps)
22 lines
550 B
JavaScript
22 lines
550 B
JavaScript
var mysql = require('mysql');
|
|
|
|
var connection = mysql.createConnection({
|
|
host : process.argv[2],
|
|
port : process.argv[3],
|
|
user : process.argv[4],
|
|
password : process.argv[5],
|
|
database : 'system',
|
|
});
|
|
|
|
connection.connect();
|
|
|
|
connection.query('SELECT 1 + 1 AS solution', function (error, results, fields) {
|
|
if (error) throw error;
|
|
|
|
if (results[0].solution.toString() !== '2') {
|
|
throw Error('Wrong result of a query. Expected: "2", received: ' + results[0].solution + '.')
|
|
}
|
|
});
|
|
|
|
connection.end();
|