Refactor AppRegistry to support multi-thread concurrency
[platform/framework/native/appfw.git] / src / io / FIo_DatabaseImpl.cpp
index d78de83..9237e56 100644 (file)
@@ -1,5 +1,4 @@
 //
-// Open Service Platform
 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
 //
 // Licensed under the Apache License, Version 2.0 (the License);
@@ -857,7 +856,7 @@ _DatabaseImpl::QueryN(const String& query)
                pQuery++;
        }
 
-       if (strncasecmp(pQuery, "select", 6) != 0)
+       if ((strncasecmp(pQuery, "select", 6) != 0) && (strncasecmp(pQuery, "PRAGMA", 6) != 0))
        {
                r = E_INVALID_OPERATION;
                goto CATCH;