Skip to content

Commit cc182ac

Browse files
montywispetrunia
authored andcommitted
Fixed compiler warning in connect/ha_connect.cc
(fp->field_length is always >= 0)
1 parent bd2cebb commit cc182ac

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

storage/connect/ha_connect.cc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1614,10 +1614,7 @@ void *ha_connect::GetColumnOption(PGLOBAL g, void *field, PCOLINFO pcf)
16141614
pcf->Scale= 0;
16151615
pcf->Opt= (fop) ? (int)fop->opt : 0;
16161616

1617-
if (fp->field_length >= 0)
1618-
pcf->Length= fp->field_length;
1619-
else
1620-
pcf->Length= 256; // BLOB?
1617+
pcf->Length= fp->field_length;
16211618

16221619
pcf->Precision= pcf->Length;
16231620

storage/connect/tabext.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ bool TDBEXT::MakeSQL(PGLOBAL g, bool cnt)
466466

467467
if (Quote) {
468468
// Tabname can have both database and table identifiers, we need to parse
469-
if (res= strstr(buf, "."))
469+
if ((res= strstr(buf, ".")))
470470
{
471471
// Parse schema
472472
my_len= res - buf + 1;

0 commit comments

Comments
 (0)