@@ -116,15 +116,15 @@ class Statement
116
116
*/
117
117
void bind (const int aIndex, const unsigned aValue);
118
118
119
- #if (LONG_MAX == INT_MAX) // sizeof(long)==4 means the data model of the system is ILP32 (32bits OS or Windows 64bits )
119
+ #if (LONG_MAX == INT_MAX) // 4 bytes "long" type means the data model is ILP32 or LLP64 (Win64 Visual C++ and MinGW )
120
120
/* *
121
121
* @brief Bind a 32bits long value to a parameter "?", "?NNN", ":VVV", "@VVV" or "$VVV" in the SQL prepared statement (aIndex >= 1)
122
122
*/
123
123
void bind (const int aIndex, const long aValue)
124
124
{
125
125
bind (aIndex, static_cast <int >(aValue));
126
126
}
127
- #else // sizeof(long)==8 means the data model of the system is LLP64 (64bits Linux )
127
+ #else // 8 bytes "long" type means the data model is LP64 (Most Unix-like, Windows when using Cygwin; z/OS )
128
128
/* *
129
129
* @brief Bind a 64bits long value to a parameter "?", "?NNN", ":VVV", "@VVV" or "$VVV" in the SQL prepared statement (aIndex >= 1)
130
130
*/
@@ -198,15 +198,15 @@ class Statement
198
198
*/
199
199
void bind (const char * apName, const unsigned aValue);
200
200
201
- #if (LONG_MAX == INT_MAX) // sizeof(long)==4 means the data model of the system is ILP32 (32bits OS or Windows 64bits )
201
+ #if (LONG_MAX == INT_MAX) // 4 bytes "long" type means the data model is ILP32 or LLP64 (Win64 Visual C++ and MinGW )
202
202
/* *
203
203
* @brief Bind a 32bits long value to a parameter "?", "?NNN", ":VVV", "@VVV" or "$VVV" in the SQL prepared statement (aIndex >= 1)
204
204
*/
205
205
void bind (const char * apName, const long aValue)
206
206
{
207
207
bind (apName, static_cast <int >(aValue));
208
208
}
209
- #else // sizeof(long)==8 means the data model of the system is LLP64 (64bits Linux )
209
+ #else // 8 bytes "long" type means the data model is LP64 (Most Unix-like, Windows when using Cygwin; z/OS )
210
210
/* *
211
211
* @brief Bind a 64bits long value to a parameter "?", "?NNN", ":VVV", "@VVV" or "$VVV" in the SQL prepared statement (aIndex >= 1)
212
212
*/
@@ -286,15 +286,15 @@ class Statement
286
286
bind (aName.c_str (), aValue);
287
287
}
288
288
289
- #if (LONG_MAX == INT_MAX) // sizeof(long)==4 means the data model of the system is ILP32 (32bits OS or Windows 64bits )
289
+ #if (LONG_MAX == INT_MAX) // 4 bytes "long" type means the data model is ILP32 or LLP64 (Win64 Visual C++ and MinGW )
290
290
/* *
291
291
* @brief Bind a 32bits long value to a parameter "?", "?NNN", ":VVV", "@VVV" or "$VVV" in the SQL prepared statement (aIndex >= 1)
292
292
*/
293
293
void bind (const std::string& aName, const long aValue)
294
294
{
295
295
bind (aName.c_str (), static_cast <int >(aValue));
296
296
}
297
- #else // sizeof(long)==8 means the data model of the system is LLP64 (64bits Linux )
297
+ #else // 8 bytes "long" type means the data model is LP64 (Most Unix-like, Windows when using Cygwin; z/OS )
298
298
/* *
299
299
* @brief Bind a 64bits long value to a parameter "?", "?NNN", ":VVV", "@VVV" or "$VVV" in the SQL prepared statement (aIndex >= 1)
300
300
*/
0 commit comments