Lightweight 0.20260921.0
Loading...
Searching...
No Matches
Lightweight::SqlDataBinder< SqlDynamicNumeric >::Literal Struct Reference

A decimal column's text, as delivered by a single SQLGetData call. More...

#include <SqlDynamicNumeric.hpp>

Public Attributes

SQLRETURN returnCode = SQL_SUCCESS
 What SQLGetData reported, or SQL_ERROR when the text did not fit the caller's buffer.
 
std::string_view text
 The literal, or empty when the column is NULL, the read failed, or the text was truncated.
 
bool isNull = false
 

Detailed Description

A decimal column's text, as delivered by a single SQLGetData call.

Definition at line 373 of file SqlDynamicNumeric.hpp.

Member Data Documentation

◆ returnCode

SQLRETURN Lightweight::SqlDataBinder< SqlDynamicNumeric >::Literal::returnCode = SQL_SUCCESS

What SQLGetData reported, or SQL_ERROR when the text did not fit the caller's buffer.

Definition at line 376 of file SqlDynamicNumeric.hpp.

◆ text

std::string_view Lightweight::SqlDataBinder< SqlDynamicNumeric >::Literal::text

The literal, or empty when the column is NULL, the read failed, or the text was truncated.

Definition at line 378 of file SqlDynamicNumeric.hpp.

◆ isNull

bool Lightweight::SqlDataBinder< SqlDynamicNumeric >::Literal::isNull = false

Whether the column was NULL. Reported here rather than left to the caller's indicator, which ReadLiteral accepts as null — a caller passing none could not otherwise tell a NULL apart from a failed read.

Definition at line 382 of file SqlDynamicNumeric.hpp.


The documentation for this struct was generated from the following file: