АS
Size: a a a
АS
АS
S
АS
S
АS
АS
S
АS
cl
async function connectToDatabase() {
const connection = await odbc.connect('DSN=ClickHouse DSN (ANSI)');
console.log("connection is open");
}
connectToDatabase();
const connection = odbc.connect('DSN=ClickHouse DSN (ANSI)', (error, connection) => {
connection.query('SELECT * FROM test.test_table', (error, result) => {
if (error) { console.error(error) }
console.log(result);
});
});
[Error: [odbc] Error retrieving the result set from the statement] {
odbcErrors: [
{
state: 'HY090',
code: 1,
message: 'Invalid string or buffer length'
}
]
}
undefined
Segmentation fault (core dumped)
S
S
ДУ
CREATE TABLE default.internal_logs (
date Date DEFAULT toDate(time),
time DateTime,
server String,
port Int32,
type String,
table String,
volume Int64,
message String,
content String,
source String,
server_time DateTime DEFAULT now()
)
ENGINE = ReplicatedMergeTree('/clickhouse/tables/{shard}/internal_logs', '{replica}')
PARTITION BY tuple()
ORDER BY time
SETTINGS index_granularity = 8192;
S
async function connectToDatabase() {
const connection = await odbc.connect('DSN=ClickHouse DSN (ANSI)');
console.log("connection is open");
}
connectToDatabase();
const connection = odbc.connect('DSN=ClickHouse DSN (ANSI)', (error, connection) => {
connection.query('SELECT * FROM test.test_table', (error, result) => {
if (error) { console.error(error) }
console.log(result);
});
});
[Error: [odbc] Error retrieving the result set from the statement] {
odbcErrors: [
{
state: 'HY090',
code: 1,
message: 'Invalid string or buffer length'
}
]
}
undefined
Segmentation fault (core dumped)
cl
S
АS
ML