Skip to content

Commit

Permalink
Add LongLong support to virtual provider
Browse files Browse the repository at this point in the history
  • 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
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ struct VTable
case QVariant::Int: case QVariant::Int:
case QVariant::UInt: case QVariant::UInt:
case QVariant::Bool: case QVariant::Bool:
case QVariant::LongLong:
typeName = "int"; typeName = "int";
break; break;
case QVariant::Double: 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: case QVariant::UInt:
sqlite3_result_int( ctxt, v.toInt() ); sqlite3_result_int( ctxt, v.toInt() );
break; break;
case QVariant::LongLong:
sqlite3_result_int64( ctxt, v.toLongLong() );
break;
case QVariant::Double: case QVariant::Double:
sqlite3_result_double( ctxt, v.toDouble() ); sqlite3_result_double( ctxt, v.toDouble() );
break; break;
Expand Down

0 comments on commit 9c9ff79

Please sign in to comment.