Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add LongLong support to virtual provider
  • Loading branch information
m-kuhn committed Dec 22, 2015
1 parent e00815d commit 9c9ff79
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/providers/virtual/qgsvirtuallayersqlitemodule.cpp
Expand Up @@ -188,6 +188,7 @@ struct VTable
case QVariant::Int:
case QVariant::UInt:
case QVariant::Bool:
case QVariant::LongLong:
typeName = "int";
break;
case QVariant::Double:
Expand Down Expand Up @@ -588,6 +589,9 @@ int vtable_column( sqlite3_vtab_cursor *cursor, sqlite3_context* ctxt, int idx )
case QVariant::UInt:
sqlite3_result_int( ctxt, v.toInt() );
break;
case QVariant::LongLong:
sqlite3_result_int64( ctxt, v.toLongLong() );
break;
case QVariant::Double:
sqlite3_result_double( ctxt, v.toDouble() );
break;
Expand Down

0 comments on commit 9c9ff79

Please sign in to comment.