Пример #1
0
int db_sequence_get_range(DB_SEQUENCE *seq, u_int32_t *minlowp, 
			  int32_t *minhighp, u_int32_t *maxlowp, 
			  int32_t *maxhighp) {
  int64_t min, max;
  int errno;
  errno = seq->get_range(seq, &min, &max);
  *minlowp = lower_u32bits(min);
  *minhighp = upper_32bits(min);
  *maxlowp = lower_u32bits(max);
  *maxhighp = upper_32bits(max);
  return errno;
}
Пример #2
0
DLLEXPORT
unsigned int
clsql_mysql_insert_id (MYSQL* mysql, unsigned int* pHigh32)
{
  my_ulonglong insert_id = mysql_insert_id (mysql);
  *pHigh32 = upper_32bits(insert_id);
  return lower_32bits(insert_id);
}
Пример #3
0
DLLEXPORT
unsigned int
clsql_mysql_affected_rows (MYSQL* res, unsigned int* pHigh32)
{
  my_ulonglong nAffected = mysql_affected_rows (res);
  *pHigh32 = upper_32bits(nAffected);
  return lower_32bits(nAffected);
}
Пример #4
0
DLLEXPORT
unsigned int
clsql_mysql_num_rows (MYSQL_RES* res, unsigned int* pHigh32)
{
  my_ulonglong nRows = mysql_num_rows (res);
  *pHigh32 = upper_32bits(nRows);
  return lower_32bits(nRows);
}
Пример #5
0
DLLEXPORT
DLLEXPORT
unsigned int
clsql_mysql_stmt_affected_rows (MYSQL_STMT* stmt, unsigned int* pHigh32)
{
  my_ulonglong nAffected = mysql_stmt_affected_rows (stmt);
  *pHigh32 = upper_32bits(nAffected);
  return lower_32bits(nAffected);
}
Пример #6
0
int db_sequence_get(DB_SEQUENCE *seq, DB_TXN *txnid, int32_t delta,
		    u_int32_t *lowp, int32_t *highp, u_int32_t flags) {
  db_seq_t next;
  int ret;

  ret = seq->get(seq, txnid, delta, &next, flags);
  *lowp = lower_u32bits(next);
  *highp = upper_32bits(next);
  return ret;
}