First off thanks for making an excellent set of components!
I'm currently testing uniDAC v3.50.0.13 and have come across an error posting to a SQLite3 table with "index" as a field name with, which also happens to be the primary key field and is part of a secondary key. Not my table I'm testing against so can't change the field name. Tested the table against multiple front ends and they handle posting to the table fine.
I did however change the field name to test if the error would go away if the field name "index" wasn't actually the name and there wasn't an error on post.
Any suggestions/fixes for this besides the obvious of changing the field name and associated indexes?
Any help would be greatly appreciated.
[SOLVED]: SQLite3 Posting error with "index" as a field name
-
- Posts: 3
- Joined: Wed 15 Dec 2010 00:32
[SOLVED]: SQLite3 Posting error with "index" as a field name
Last edited by LongHairCook on Thu 16 Dec 2010 16:12, edited 1 time in total.
-
- Posts: 3
- Joined: Wed 15 Dec 2010 00:32
Hi,
Thanks for the quick response! Here's the SQL taken from SQLite Administrator:
CREATE TABLE Categories(
[index] [integer] NOT NULL PRIMARY KEY,
[active] [integer] NOT NULL DEFAULT (1),
[deleted] [integer] NOT NULL DEFAULT (0),
[icon] [integer] NOT NULL DEFAULT (-1),
[name] [varchar](255) NOT NULL DEFAULT ('Something'),
[parentIndex] [integer] NOT NULL DEFAULT (0),
[originalName] [varchar](255) NOT NULL DEFAULT (''));
CREATE UNIQUE INDEX Categories_IndexAndActiveAndDeletedAndNameAndParentIndex on Categories (
[index] ASC,
[active] ASC,
[deleted] ASC,
[name] ASC,
[parentIndex] ASC);
Thanks again for taking the time in looking at this.
Thanks for the quick response! Here's the SQL taken from SQLite Administrator:
CREATE TABLE Categories(
[index] [integer] NOT NULL PRIMARY KEY,
[active] [integer] NOT NULL DEFAULT (1),
[deleted] [integer] NOT NULL DEFAULT (0),
[icon] [integer] NOT NULL DEFAULT (-1),
[name] [varchar](255) NOT NULL DEFAULT ('Something'),
[parentIndex] [integer] NOT NULL DEFAULT (0),
[originalName] [varchar](255) NOT NULL DEFAULT (''));
CREATE UNIQUE INDEX Categories_IndexAndActiveAndDeletedAndNameAndParentIndex on Categories (
[index] ASC,
[active] ASC,
[deleted] ASC,
[name] ASC,
[parentIndex] ASC);
Thanks again for taking the time in looking at this.
-
- Posts: 3
- Joined: Wed 15 Dec 2010 00:32