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-31
Original file line number
Diff line number
Diff line change
@@ -148,41 +148,44 @@ jsi::Value createSequelQueryExecutionResult(jsi::Runtime &rt, SQLiteOPResult sta
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
-
// Iterate over metadata to maintain column order
154
-
for (constauto &column: * metadata)
155
-
{
156
-
std::string columnName = column.colunmName;
157
-
auto it = row.find(columnName);
158
-
if (it != row.end())
151
+
jsi::Object rowObject = jsi::Object(rt);
152
+
auto row = results -> at(i);
153
+
// Iterate over metadata to maintain column order
154
+
for (constauto &column: * metadata)
155
+
{
156
+
std::string columnName = column.colunmName;
157
+
auto it = row.find(columnName);
158
+
if (it != row.end())
159
+
{
160
+
QuickValue value = it -> second;
161
+
if (value.dataType == TEXT)
162
+
{
163
+
// 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