fix exportsql issue 244

+Infinite and -Infinite Expression on Export Database to SQL file #244 
https://github.com/sqlitebrowser/sqlitebrowser/issues/244
This commit is contained in:
schdub
2015-04-10 02:41:32 +03:00
parent e0d45b72e8
commit cc1f9f9574

View File

@@ -453,6 +453,12 @@ bool DBBrowserDB::dump(const QString& filename)
case SQLITE_NULL:
stream << "NULL";
break;
case SQLITE_FLOAT:
if(bcontent.indexOf("Inf") != -1)
stream << "'" << bcontent << "'";
else
stream << bcontent;
break;
default:
stream << bcontent;
}