Beispiel #1
0
inline QString SqlBulkInsert::_escape(const QVariant& v) const
{
  switch (v.type())
  {
  case QVariant::Int:
  case QVariant::UInt:
  case QVariant::Double:
  case QVariant::LongLong:
  case QVariant::ULongLong:
    {
      return v.toString();
    }
  case QVariant::String:
    {
      QString result = v.toString();
      result.replace("'", "''");
      return "'" % result % "'";
    }
  case QVariant::Bool:
    {
      return v.toBool() ? _true : _false;
    }
  default:
    throw UnsupportedException();
  }
}
Beispiel #2
0
bool _createFile_Platform(const char* path, bool recursive)
{
	throw UnsupportedException("File Creation is not supported on Windows yet");
	return false;
}
Beispiel #3
0
bool _verifyString(const char* string)
{
	throw UnsupportedException("String verification is not supported on Windows yet");
	return false;
}
Beispiel #4
0
const char* _convertString_Platform(const char* orignalString)
{
	throw UnsupportedException("String Conversion not supported on Windows yet");
	return NULL;
}
Beispiel #5
0
bool _deleteFile_Platform(const char* path)
{
	throw UnsupportedException("File Deletion is not supported on Windows yet");
	return false;
}