Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListBug: Malformed SQL in 6.00.03 SQLDataProviderBug: Malformed SQL in 6.00.03 SQLDataProvider
Previous
 
Next
New Post
8/23/2012 7:37 PM
 

Most of the queries that are defined within the 6.00.03.SQLDataProvider file are missing the objectQualifier and databaseOwner declaration from the body of the SQL Query resulting in errors from DNN installations that use the objectQualifier.  Please see example below, the bolded areas are the areas that are missing the objectQualifier and the databaseOwner declaration;

 CREATE PROCEDURE {databaseOwner}[{objectQualifier}UserDefinedTable_FillDefaultData]
@ModuleID         INT,
@FieldId          INT, /* can be null for any field */
@DefaultValue      NVarChar(max) /*can be Null to copy default expression (no evaluation!) */
AS
IF @DefaultValue is Null
    INSERT INTO dbo.UserDefinedData (UserDefinedFieldId, UserDefinedRowId, FieldValue)
    SELECT F.UserDefinedFieldId, R.UserDefinedRowId, [Default]
    FROM (dbo.UserDefinedFields F       
    INNER JOIN dbo.UserDefinedRows R ON F.ModuleId = R.ModuleId)      
    LEFT JOIN  dbo.UserDefinedData D ON F.UserDefinedFieldId = D.UserDefinedFieldId AND R.UserDefinedRowId = D.UserDefinedRowId
    WHERE (D.UserDefinedRowID Is Null) AND ([Default] IS Not Null) AND (@ModuleID = F.ModuleId) AND (@FieldId IS Null OR F.UserDefinedFieldId = @FieldId)
 ELSE
    INSERT INTO dbo.UserDefinedData (UserDefinedFieldId, UserDefinedRowId, FieldValue)
    SELECT @FieldId, R.UserDefinedRowId, @DefaultValue
    FROM (dbo.UserDefinedFields F       
    INNER JOIN dbo.UserDefinedRows R ON F.ModuleId = R.ModuleId)      
    LEFT JOIN  dbo.UserDefinedData D ON F.UserDefinedFieldId = D.UserDefinedFieldId AND R.UserDefinedRowId = D.UserDefinedRowId
    WHERE (D.UserDefinedRowID Is Null) AND (@ModuleID = F.ModuleId) AND (@FieldId IS Null OR F.UserDefinedFieldId = @FieldId)
GO

ALTER PROCEDURE {databaseOwner}[{objectQualifier}UserDefinedTable_UpdateData]
@UserDefinedRowId    int,
@UserDefinedFieldId  int,
@FieldValue           NVarChar(max)
AS
    DELETE FROM dbo.[UserDefinedData]
    WHERE UserDefinedFieldId = @UserDefinedFieldId
    AND UserDefinedRowId = @UserDefinedRowId

    IF @FieldValue NOT LIKE ''
        INSERT INTO dbo.[UserDefinedData]
               ( UserDefinedFieldId,  UserDefinedRowId, FieldValue)
        VALUES (@UserDefinedFieldId, @UserDefinedRowId,@FieldValue)
GO

It should read DELETE FROM {databaseOwner}[{objectQualifier}UserDefinedData]

It should read INSERT INTO {databaseOwner}[{objectQualifier}UserDefinedData] 

etc...

Every stored procedure in that file is missing the {databaseOwner}[{objectQualifier}] declaration.


 
New Post
8/27/2012 7:00 AM
 
please log the issue at http://dnnfnl.codeplex.com, thank you.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
8/27/2012 10:36 AM
 
There is already a related workitem. Fnl 6.0.4 will be released soon to provide a fix to this awkward oversight.
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListBug: Malformed SQL in 6.00.03 SQLDataProviderBug: Malformed SQL in 6.00.03 SQLDataProvider


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out