Fix linker errors

This commit is contained in:
Blargian 2024-03-05 19:12:49 +01:00
parent beb0d08bdb
commit 2ad8ab2a57
3 changed files with 3 additions and 3 deletions

View File

@ -236,7 +236,7 @@ String readByEscapingRule(ReadBuffer & buf, FormatSettings::EscapingRule escapin
if constexpr (read_string)
readEscapedString(result, buf);
else
readTSVField<false>(result, buf);
readTSVField(result, buf);
break;
default:
throw Exception(ErrorCodes::BAD_ARGUMENTS, "Cannot read value with {} escaping rule", escapingRuleToString(escaping_rule));

View File

@ -1897,8 +1897,8 @@ bool tryReadQuotedField(String & s, ReadBuffer & buf);
void readJSONField(String & s, ReadBuffer & buf);
bool tryReadJSONField(String & s, ReadBuffer & buf);
template<bool support_crlf>
void readTSVField(String & s, ReadBuffer & buf);
void readTSVFieldCRLF(String & s, ReadBuffer & buf);
/** Parse the escape sequence, which can be simple (one character after backslash) or more complex (multiple characters).
* It is assumed that the cursor is located on the `\` symbol

View File

@ -121,7 +121,7 @@ String TabSeparatedFormatReader::readFieldIntoString()
if constexpr (read_string)
support_crlf ? readEscapedStringCRLF(field, *buf) : readEscapedString(field, *buf);
else
support_crlf ? readTSVField<true>(field, *buf) : readTSVField<false>(field, *buf);
support_crlf ? readTSVFieldCRLF(field, *buf) : readTSVField(field, *buf);
}
return field;
}