MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / CVT_get_sql_date

Function CVT_get_sql_date

src/jrd/cvt.cpp:332–354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

330
331
332GDS_DATE CVT_get_sql_date(const dsc* desc)
333{
334/**************************************
335 *
336 * C V T _ g e t _ s q l _ d a t e
337 *
338 **************************************
339 *
340 * Functional description
341 * Convert something arbitrary to a SQL date value
342 *
343 **************************************/
344 if (desc->dsc_dtype == dtype_sql_date)
345 return *((GDS_DATE *) desc->dsc_address);
346
347 DSC temp_desc;
348 GDS_DATE value;
349 memset(&temp_desc, 0, sizeof(temp_desc));
350 temp_desc.dsc_dtype = dtype_sql_date;
351 temp_desc.dsc_address = (UCHAR *) &value;
352 CVT_move(desc, &temp_desc, 0);
353 return value;
354}
355
356
357GDS_TIME CVT_get_sql_time(const dsc* desc)

Callers 1

MOV_get_sql_dateFunction · 0.85

Calls 1

CVT_moveFunction · 0.70

Tested by

no test coverage detected