home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
My Emulators
Updating description, year and company
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="dir" data-source="post: 354317" data-attributes="member: 24485"><p>I'm trying to update the MyEmulators3.db3 "visible" flag with the following, but it crashes:</p><p></p><p>CREATE TABLE temp (title varchar(100), description varchar(200), yearmade varchar(4), company varchar(50), visible boolean); </p><p>.separator ; </p><p>.import ./mame3.csv temp </p><p>UPDATE GAMES SET visible = (SELECT visible FROM TEMP WHERE TEMP.TITLE = GAMES.TITLE);</p><p>DROP TABLE TEMP; </p><p></p><p>I've looked at the MyEmulators3.db3 schema and it says that the 'visible' field is char(5). I've tried this as well:</p><p></p><p>CREATE TABLE temp (title varchar(100), description varchar(200), yearmade varchar(4), company varchar(50), visible varchar(5)); </p><p></p><p>mame3.csv contains only 1 line:</p><p></p><p>asteroid;Asteroids (rev 2);1979;Atari;1</p><p></p><p></p><p>When I update the database, the MyEmulator configuration plugin crashes with </p><p></p><p>************** Exception Text **************</p><p>System.FormatException: String was not recognized as a valid Boolean.</p><p> at System.Boolean.Parse(String value)</p><p> at myEmulators.DB.getGame(String path, Emulator parentEmulator)</p><p> at myEmulators.DB.getGames(String path, Emulator emulator, SearchOption recursive, Boolean showHidden)</p><p> at myEmulators.DB.getSomeGames(String sqlTail)</p><p> at myEmulators.DB.getPCGames()</p><p></p><p>Clearly, it's expecting a boolean value in the 'visible' field.</p><p></p><p>I've tried changing the source values:</p><p></p><p>asteroid;Asteroids (rev 2);1979;Atari;1</p><p>asteroid;Asteroids (rev 2);1979;Atari;TRUE</p><p>asteroid;Asteroids (rev 2);1979;Atari;True</p><p>asteroid;Asteroids (rev 2);1979;Atari;False</p><p>asteroid;Asteroids (rev 2);1979;Atari;0</p><p></p><p>But it always crashes. How do I update the Visible field in the database?</p><p></p><p>Any idea what I'm doing wrong?</p></blockquote><p></p>
[QUOTE="dir, post: 354317, member: 24485"] I'm trying to update the MyEmulators3.db3 "visible" flag with the following, but it crashes: CREATE TABLE temp (title varchar(100), description varchar(200), yearmade varchar(4), company varchar(50), visible boolean); .separator ; .import ./mame3.csv temp UPDATE GAMES SET visible = (SELECT visible FROM TEMP WHERE TEMP.TITLE = GAMES.TITLE); DROP TABLE TEMP; I've looked at the MyEmulators3.db3 schema and it says that the 'visible' field is char(5). I've tried this as well: CREATE TABLE temp (title varchar(100), description varchar(200), yearmade varchar(4), company varchar(50), visible varchar(5)); mame3.csv contains only 1 line: asteroid;Asteroids (rev 2);1979;Atari;1 When I update the database, the MyEmulator configuration plugin crashes with ************** Exception Text ************** System.FormatException: String was not recognized as a valid Boolean. at System.Boolean.Parse(String value) at myEmulators.DB.getGame(String path, Emulator parentEmulator) at myEmulators.DB.getGames(String path, Emulator emulator, SearchOption recursive, Boolean showHidden) at myEmulators.DB.getSomeGames(String sqlTail) at myEmulators.DB.getPCGames() Clearly, it's expecting a boolean value in the 'visible' field. I've tried changing the source values: asteroid;Asteroids (rev 2);1979;Atari;1 asteroid;Asteroids (rev 2);1979;Atari;TRUE asteroid;Asteroids (rev 2);1979;Atari;True asteroid;Asteroids (rev 2);1979;Atari;False asteroid;Asteroids (rev 2);1979;Atari;0 But it always crashes. How do I update the Visible field in the database? Any idea what I'm doing wrong? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
My Emulators
Updating description, year and company
Contact us
RSS
Top
Bottom