Skip to content

Commit

Permalink
Fixed compiler warning in connect/ha_connect.cc
Browse files Browse the repository at this point in the history
(fp->field_length is always >= 0)
  • Loading branch information
montywi authored and spetrunia committed Feb 15, 2023
1 parent bd2cebb commit cc182ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions storage/connect/ha_connect.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion storage/connect/tabext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cc182ac

Please sign in to comment.