| 496 | } |
| 497 | |
| 498 | bool CMysqlConnection::IsNull(int Col) |
| 499 | { |
| 500 | Col -= 1; |
| 501 | |
| 502 | MYSQL_BIND Bind; |
| 503 | my_bool IsNull; |
| 504 | mem_zero(&Bind, sizeof(Bind)); |
| 505 | Bind.buffer_type = MYSQL_TYPE_NULL; |
| 506 | Bind.buffer = nullptr; |
| 507 | Bind.buffer_length = 0; |
| 508 | Bind.length = nullptr; |
| 509 | Bind.is_null = &IsNull; |
| 510 | Bind.is_unsigned = false; |
| 511 | Bind.error = nullptr; |
| 512 | if(mysql_stmt_fetch_column(m_pStmt.get(), &Bind, Col, 0)) |
| 513 | { |
| 514 | StoreErrorStmt("fetch_column:null"); |
| 515 | dbg_assert_failed("Error in IsNull(%d): error fetching column %s", Col + 1, m_aErrorDetail); |
| 516 | } |
| 517 | return IsNull; |
| 518 | } |
| 519 | |
| 520 | float CMysqlConnection::GetFloat(int Col) |
| 521 | { |