Issuing PRAGMA statement in AIR app

廉价感情. 提交于 2019-12-23 01:58:24

问题


When I use the flash.data routines to issue a SQLite "PRAGMA encoding" statement, I get an error suggesting that this isn't supported:

'Error #3115: SQL Error.', details:'PRAGMA is not allowed in SQL.', operation:'execute', detailID:'2005

Is there a workaround?


回答1:


In a word no. See for supported and unsupported features.

http://help.adobe.com/en_US/as3/dev/WSd47bd22bdd97276f1365b8c112629d7c47c-8000.html#WSd47bd22bdd97276f-5741a41a1262b2de46b-8000.

However on that page however you will see... System table access is not available The system tables including sqlite_master and other tables with the "sqlite_" prefix are not available in SQL statements. The runtime includes a schema API that provides an object-oriented way to access schema data. For more information see the SQLConnection.loadSchema() method.

For a more detailed help in using loadSchema have a look at,

http://gmarius.posterous.com/a-test-33

and consider using,

http://sqlitebrowser.sourceforge.net/ In fact



来源:https://stackoverflow.com/questions/6417040/issuing-pragma-statement-in-air-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!