Commit 76e313c0 authored by Michael Meskes's avatar Michael Meskes

Replaced int64_t with int64 as Andrew suggested.

parent 223a9cd3
...@@ -355,7 +355,7 @@ ecpg_set_compat_sqlda(int lineno, struct sqlda_compat **_sqlda, const PGresult * ...@@ -355,7 +355,7 @@ ecpg_set_compat_sqlda(int lineno, struct sqlda_compat **_sqlda, const PGresult *
sqlda->sqlvar[i].sqllen = sizeof(timestamp); sqlda->sqlvar[i].sqllen = sizeof(timestamp);
break; break;
case ECPGt_interval: case ECPGt_interval:
ecpg_sqlda_align_add_size(offset, sizeof(int64_t), sizeof(interval), &offset, &next_offset); ecpg_sqlda_align_add_size(offset, sizeof(int64), sizeof(interval), &offset, &next_offset);
sqlda->sqlvar[i].sqldata = (char *)sqlda + offset; sqlda->sqlvar[i].sqldata = (char *)sqlda + offset;
sqlda->sqlvar[i].sqllen = sizeof(interval); sqlda->sqlvar[i].sqllen = sizeof(interval);
break; break;
...@@ -540,7 +540,7 @@ ecpg_set_native_sqlda(int lineno, struct sqlda_struct **_sqlda, const PGresult * ...@@ -540,7 +540,7 @@ ecpg_set_native_sqlda(int lineno, struct sqlda_struct **_sqlda, const PGresult *
sqlda->sqlvar[i].sqllen = sizeof(timestamp); sqlda->sqlvar[i].sqllen = sizeof(timestamp);
break; break;
case ECPGt_interval: case ECPGt_interval:
ecpg_sqlda_align_add_size(offset, sizeof(int64_t), sizeof(interval), &offset, &next_offset); ecpg_sqlda_align_add_size(offset, sizeof(int64), sizeof(interval), &offset, &next_offset);
sqlda->sqlvar[i].sqldata = (char *)sqlda + offset; sqlda->sqlvar[i].sqldata = (char *)sqlda + offset;
sqlda->sqlvar[i].sqllen = sizeof(interval); sqlda->sqlvar[i].sqllen = sizeof(interval);
break; break;
......
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