src/sql/drivers/oci/qsql_oci.cpp
changeset 7 f7bc934e204c
parent 3 41300fa6a67c
equal deleted inserted replaced
3:41300fa6a67c 7:f7bc934e204c
     1 /****************************************************************************
     1 /****************************************************************************
     2 **
     2 **
     3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     4 ** All rights reserved.
     4 ** All rights reserved.
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     6 **
     6 **
     7 ** This file is part of the QtSql module of the Qt Toolkit.
     7 ** This file is part of the QtSql module of the Qt Toolkit.
     8 **
     8 **
   515                 break;
   515                 break;
   516         }
   516         }
   517     }
   517     }
   518     else if (ocitype == QLatin1String("LONG") || ocitype == QLatin1String("NCLOB")
   518     else if (ocitype == QLatin1String("LONG") || ocitype == QLatin1String("NCLOB")
   519              || ocitype == QLatin1String("CLOB"))
   519              || ocitype == QLatin1String("CLOB"))
   520         type = QVariant::String;
   520         type = QVariant::ByteArray;
   521     else if (ocitype == QLatin1String("RAW") || ocitype == QLatin1String("LONG RAW")
   521     else if (ocitype == QLatin1String("RAW") || ocitype == QLatin1String("LONG RAW")
   522              || ocitype == QLatin1String("ROWID") || ocitype == QLatin1String("BLOB")
   522              || ocitype == QLatin1String("ROWID") || ocitype == QLatin1String("BLOB")
   523              || ocitype == QLatin1String("CFILE") || ocitype == QLatin1String("BFILE"))
   523              || ocitype == QLatin1String("CFILE") || ocitype == QLatin1String("BFILE"))
   524         type = QVariant::ByteArray;
   524         type = QVariant::ByteArray;
   525     else if (ocitype == QLatin1String("DATE") ||  ocitype.startsWith(QLatin1String("TIME")))
   525     else if (ocitype == QLatin1String("DATE") ||  ocitype.startsWith(QLatin1String("TIME")))
   541     case SQLT_AFC:
   541     case SQLT_AFC:
   542     case SQLT_VCS:
   542     case SQLT_VCS:
   543     case SQLT_AVC:
   543     case SQLT_AVC:
   544     case SQLT_RDD:
   544     case SQLT_RDD:
   545     case SQLT_LNG:
   545     case SQLT_LNG:
   546     case SQLT_CLOB:
       
   547 #ifdef SQLT_INTERVAL_YM
   546 #ifdef SQLT_INTERVAL_YM
   548     case SQLT_INTERVAL_YM:
   547     case SQLT_INTERVAL_YM:
   549 #endif
   548 #endif
   550 #ifdef SQLT_INTERVAL_DS
   549 #ifdef SQLT_INTERVAL_DS
   551     case SQLT_INTERVAL_DS:
   550     case SQLT_INTERVAL_DS:
   579     case SQLT_BIN:
   578     case SQLT_BIN:
   580     case SQLT_LBI:
   579     case SQLT_LBI:
   581     case SQLT_LVC:
   580     case SQLT_LVC:
   582     case SQLT_LVB:
   581     case SQLT_LVB:
   583     case SQLT_BLOB:
   582     case SQLT_BLOB:
       
   583     case SQLT_CLOB:
   584     case SQLT_FILE:
   584     case SQLT_FILE:
   585     case SQLT_NTY:
   585     case SQLT_NTY:
   586     case SQLT_REF:
   586     case SQLT_REF:
   587     case SQLT_RID:
   587     case SQLT_RID:
   588         type = QVariant::ByteArray;
   588         type = QVariant::ByteArray;