Commit cc182aca authored by Monty's avatar Monty Committed by Sergei Petrunia

Fixed compiler warning in connect/ha_connect.cc

(fp->field_length is always >= 0)
parent bd2cebb8
......@@ -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;
......
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment