mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +01:00
Fixed compiler warning in connect/ha_connect.cc
(fp->field_length is always >= 0)
This commit is contained in:
parent
bd2cebb8b1
commit
cc182aca93
2 changed files with 2 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue