Skip to content

Commit 9c9ff79

Browse files
committed
Add LongLong support to virtual provider
1 parent e00815d commit 9c9ff79

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/providers/virtual/qgsvirtuallayersqlitemodule.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ struct VTable
188188
case QVariant::Int:
189189
case QVariant::UInt:
190190
case QVariant::Bool:
191+
case QVariant::LongLong:
191192
typeName = "int";
192193
break;
193194
case QVariant::Double:
@@ -588,6 +589,9 @@ int vtable_column( sqlite3_vtab_cursor *cursor, sqlite3_context* ctxt, int idx )
588589
case QVariant::UInt:
589590
sqlite3_result_int( ctxt, v.toInt() );
590591
break;
592+
case QVariant::LongLong:
593+
sqlite3_result_int64( ctxt, v.toLongLong() );
594+
break;
591595
case QVariant::Double:
592596
sqlite3_result_double( ctxt, v.toDouble() );
593597
break;

0 commit comments

Comments
 (0)