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: 354450" data-attributes="member: 24485"><p>Well, I've spent several more hours trying every conceivable combination of CREATE TABLE statements to make this work, and failed.</p><p></p><p>CREATE TABLE temp (title varchar(100), description varchar(200), yearmade varchar(4), company varchar(50), visible boolean NOT NULL DEFAULT 1); </p><p>CREATE TABLE temp (title varchar(100), description varchar(200), yearmade varchar(4), company varchar(50), visible boolean); </p><p>CREATE TABLE temp (title varchar(100), description varchar(200), yearmade varchar(4), company varchar(50), visible boolean NOT NULL DEFAULT 0); </p><p>CREATE TABLE temp (title varchar(100), description varchar(200), yearmade varchar(4), company varchar(50), visible varchar(5)); </p><p></p><p>all fail when I try to do an update using any of these:</p><p></p><p>asteroid;Asteroids (rev 2);1979;Atari;TRUE</p><p>asteroid;Asteroids (rev 2);1979;Atari;0</p><p>asteroid;Asteroids (rev 2);1979;Atari;FALSE</p><p>asteroid;Asteroids (rev 2);1979;Atari;1</p><p>asteroid;Asteroids (rev 2);1979;Atari;t</p><p>asteroid;Asteroids (rev 2);1979;Atari;#f</p><p></p><p>All of these simply cause the MyEmulators configurator plugin to crash with the error below. I'm starting to think that either:</p><p></p><p>- the Visible field isn't actually a boolean in the database,</p><p>- the configurator program has a bug,</p><p>- the configurator program's doing something clever to read a character field as a boolean or something</p><p>- you can't update a boolean field with the values above because none of them are actually binary TRUE/FALSE values</p><p></p><p>I'd love to know a way to update the database's Visible field so that I can do a bulk-update. There's no way that it's practical to change 7500+ tick boxes manually!</p><p></p><p>Dir</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> at myEmulators.Conf_PCGames..ctor()</p><p> at myEmulators.Configuration.Configuration_Load(Object sender, EventArgs e)</p><p> at System.Windows.Forms.Form.OnLoad(EventArgs e)</p><p> at System.Windows.Forms.Form.OnCreateControl()</p><p> at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)</p><p> at System.Windows.Forms.Control.CreateControl()</p><p> at System.Windows.Forms.Control.WmShowWindow(Message& m)</p><p> at System.Windows.Forms.Control.WndProc(Message& m)</p><p> at System.Windows.Forms.ScrollableControl.WndProc(Message& m)</p><p> at System.Windows.Forms.ContainerControl.WndProc(Message& m)</p><p> at System.Windows.Forms.Form.WmShowWindow(Message& m)</p><p> at System.Windows.Forms.Form.WndProc(Message& m)</p><p> at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)</p><p> at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)</p><p> at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)</p></blockquote><p></p>
[QUOTE="dir, post: 354450, member: 24485"] Well, I've spent several more hours trying every conceivable combination of CREATE TABLE statements to make this work, and failed. CREATE TABLE temp (title varchar(100), description varchar(200), yearmade varchar(4), company varchar(50), visible boolean NOT NULL DEFAULT 1); CREATE TABLE temp (title varchar(100), description varchar(200), yearmade varchar(4), company varchar(50), visible boolean); CREATE TABLE temp (title varchar(100), description varchar(200), yearmade varchar(4), company varchar(50), visible boolean NOT NULL DEFAULT 0); CREATE TABLE temp (title varchar(100), description varchar(200), yearmade varchar(4), company varchar(50), visible varchar(5)); all fail when I try to do an update using any of these: asteroid;Asteroids (rev 2);1979;Atari;TRUE asteroid;Asteroids (rev 2);1979;Atari;0 asteroid;Asteroids (rev 2);1979;Atari;FALSE asteroid;Asteroids (rev 2);1979;Atari;1 asteroid;Asteroids (rev 2);1979;Atari;t asteroid;Asteroids (rev 2);1979;Atari;#f All of these simply cause the MyEmulators configurator plugin to crash with the error below. I'm starting to think that either: - the Visible field isn't actually a boolean in the database, - the configurator program has a bug, - the configurator program's doing something clever to read a character field as a boolean or something - you can't update a boolean field with the values above because none of them are actually binary TRUE/FALSE values I'd love to know a way to update the database's Visible field so that I can do a bulk-update. There's no way that it's practical to change 7500+ tick boxes manually! Dir ************** 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() at myEmulators.Conf_PCGames..ctor() at myEmulators.Configuration.Configuration_Load(Object sender, EventArgs e) at System.Windows.Forms.Form.OnLoad(EventArgs e) at System.Windows.Forms.Form.OnCreateControl() at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.Control.CreateControl() at System.Windows.Forms.Control.WmShowWindow(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ScrollableControl.WndProc(Message& m) at System.Windows.Forms.ContainerControl.WndProc(Message& m) at System.Windows.Forms.Form.WmShowWindow(Message& m) at System.Windows.Forms.Form.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) [/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