mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
backward compatible
This commit is contained in:
parent
c38403998e
commit
b76a854f5a
@ -580,6 +580,12 @@ void Connection::sendPreparedData(ReadBuffer & input, size_t size, const String
|
||||
|
||||
void Connection::sendScalarsData(Scalars & data)
|
||||
{
|
||||
/// Avoid sending scalars to old servers. Note that this isn't a full fix. We didn't introduce a
|
||||
/// dedicated revision after introducing scalars, so this will still break some versions with
|
||||
/// revision 54428.
|
||||
if (server_revision < DBMS_MIN_REVISION_WITH_SCALARS)
|
||||
return;
|
||||
|
||||
if (data.empty())
|
||||
return;
|
||||
|
||||
|
@ -71,6 +71,7 @@
|
||||
|
||||
/// Minimum revision supporting SettingsBinaryFormat::STRINGS.
|
||||
#define DBMS_MIN_REVISION_WITH_SETTINGS_SERIALIZED_AS_STRINGS 54429
|
||||
#define DBMS_MIN_REVISION_WITH_SCALARS 54429
|
||||
|
||||
/// Minimum revision supporting OpenTelemetry
|
||||
#define DBMS_MIN_REVISION_WITH_OPENTELEMETRY 54442
|
||||
|
Loading…
Reference in New Issue
Block a user