MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / push_null

Function push_null

lua/sp.c:5798–5820  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5796}
5797
5798static int push_null(Lua L, int param_type)
5799{
5800 enum dbtypes_enum type;
5801 switch (param_type) {
5802 case COMDB2_NULL_TYPE: // who sends this?
5803 case CLIENT_INT:
5804 case CLIENT_UINT: type = DBTYPES_INTEGER; break;
5805 case CLIENT_CSTR:
5806 case CLIENT_PSTR:
5807 case CLIENT_PSTR2:
5808 case CLIENT_VUTF8: type = DBTYPES_CSTRING; break;
5809 case CLIENT_BYTEARRAY:
5810 case CLIENT_BLOB: type = DBTYPES_BLOB; break;
5811 case CLIENT_DATETIME:
5812 case CLIENT_DATETIMEUS: type = DBTYPES_DATETIME; break;
5813 case CLIENT_INTVDS:
5814 case CLIENT_INTVDSUS: type = DBTYPES_INTERVALDS; break;
5815 case CLIENT_INTVYM: type = DBTYPES_INTERVALYM; break;
5816 default: return -1;
5817 }
5818 luabb_pushnull(L, type);
5819 return 0;
5820}
5821
5822static int push_blob_array(Lua L, struct param_data *p)
5823{

Callers 1

push_paramFunction · 0.85

Calls 1

luabb_pushnullFunction · 0.85

Tested by

no test coverage detected