Commit ffc29ac3 authored by Olivier Bertrand's avatar Olivier Bertrand

- Enable type conversion on Insert and Update

modified:
  storage/connect/connect.cc
parent cb1847df
...@@ -287,7 +287,8 @@ bool CntOpenTable(PGLOBAL g, PTDB tdbp, MODE mode, char *c1, char *c2, ...@@ -287,7 +287,8 @@ bool CntOpenTable(PGLOBAL g, PTDB tdbp, MODE mode, char *c1, char *c2,
return true; return true;
if (mode == MODE_INSERT) if (mode == MODE_INSERT)
if (colp->SetBuffer(g, colp->GetValue(), true, true)) // Allow type conversion
if (colp->SetBuffer(g, colp->GetValue(), true, false))
return true; return true;
colp->AddColUse(U_P); // For PLG tables colp->AddColUse(U_P); // For PLG tables
...@@ -344,7 +345,7 @@ bool CntOpenTable(PGLOBAL g, PTDB tdbp, MODE mode, char *c1, char *c2, ...@@ -344,7 +345,7 @@ bool CntOpenTable(PGLOBAL g, PTDB tdbp, MODE mode, char *c1, char *c2,
if (colp->InitValue(g)) if (colp->InitValue(g))
return true; return true;
if (colp->SetBuffer(g, colp->GetValue(), true, true)) if (colp->SetBuffer(g, colp->GetValue(), true, false))
return true; return true;
} // endfor colp } // endfor colp
......
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