sqlite: adding content to pages

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
8/20/2007 11:39:37 AM
Gravatar
Total Posts 8

Re: sqlite: adding content to pages

one additional note:

apparently the data is saved correctly to the sqlite db (i checked with sqlite admin), and the error is happening when only displaying the blog page ...

hope this helps.

br, chris

8/20/2007 1:01:32 PM
Gravatar
Total Posts 18439

Re: sqlite: adding content to pages

Hi Chris,

This is apparently more of the same bug which must be in Mono.Data.Sqlite or insqlite itself.

Apparently when using a select statement like:

SELECT bc.Category, ...more fields.

It sees the column name as bc.Category instead of just Category as it should so it gives a column not found error during data binding because it can't find the Category column.

The workaround solution is to alias the column to its correct name like:

SELECT bc.Category As Category,...more fields

The problem is I'm pretty sure there are a lot of places in the code where table prefixes are used so a lot of places where this bug could pop up. Strange that its happening only in the blog. Best I can do is set aside some time to try and review as much of the code as possible looking for these issues and putting the workaround in place. Or try to figure out where the actual bug is further down the stack.

Joe

You must sign in to post in the forums. This thread is closed to new posts.