Fixed compiler warning in connect/ha_connect.cc

(fp->field_length is always >= 0)
This commit is contained in:
Monty 2023-02-10 13:06:37 +02:00 committed by Sergei Petrunia
parent bd2cebb8b1
commit cc182aca93
2 changed files with 2 additions and 5 deletions

View file

@ -1614,10 +1614,7 @@ void *ha_connect::GetColumnOption(PGLOBAL g, void *field, PCOLINFO pcf)
pcf->Scale= 0;
pcf->Opt= (fop) ? (int)fop->opt : 0;
if (fp->field_length >= 0)
pcf->Length= fp->field_length;
else
pcf->Length= 256; // BLOB?
pcf->Length= fp->field_length;
pcf->Precision= pcf->Length;

View file

@ -466,7 +466,7 @@ bool TDBEXT::MakeSQL(PGLOBAL g, bool cnt)
if (Quote) {
// Tabname can have both database and table identifiers, we need to parse
if (res= strstr(buf, "."))
if ((res= strstr(buf, ".")))
{
// Parse schema
my_len= res - buf + 1;