You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cpp/JSIHelper.cpp
+34-33
Original file line number
Diff line number
Diff line change
@@ -143,45 +143,46 @@ jsi::Value createSequelQueryExecutionResult(jsi::Runtime &rt, SQLiteOPResult sta
143
143
// Converting row results into objects
144
144
size_t rowCount = results->size();
145
145
jsi::Object rows = jsi::Object(rt);
146
-
if (rowCount > 0)
146
+
if (rowCount > 0 && metadata != NULL)
147
147
{
148
148
auto array = jsi::Array(rt, rowCount);
149
149
for (int i = 0; i < rowCount; i++)
150
150
{
151
-
jsi::Object rowObject = jsi::Object(rt);
152
-
auto row = results->at(i);
153
-
for (autoconst &entry : row)
154
-
{
155
-
std::string columnName = entry.first;
156
-
QuickValue value = entry.second;
157
-
if (value.dataType == TEXT)
158
-
{
159
-
// using value.textValue (std::string) directly allows jsi::String to use length property of std::string (allowing strings with NULLs in them like SQLite does)
// using value.textValue (std::string) directly allows jsi::String to use length property of std::string (allowing strings with NULLs in them like SQLite does)
0 commit comments