Ticket #89 (closed defect: fixed)

Opened 20 years ago

Last modified 19 years ago

Error when trying to use scaffolds

Reported by: DerekBez Owned by: somebody
Priority: normal Milestone:
Version: 2.0.304 Severity: normal
Keywords: scaffold Cc:

Description

I'm a newbie to MG, but the concepts, once I had watched the presentation, were simple to grasp.

Now I'm trying it out. I've been through the QuickStart and all was well. Of course the first thing I would want to do is databases stuff with scaffolds.

Whenever I include any <scaffold> tag in the modelglue.xml it throws this error:

Error Executing Database Query. [Macromedia][SQLServer JDBC Driver][SQLServer]Incorrect syntax near the keyword 'database'. The error occurred in D:\www\cfmx\scratch\modelglue-test\reactor\data\mysql\ObjectDao?.cfc: line 18

It doesn't matter what object name I give it - regardless of the content in reactor.xml - same result.

I appreciate there is still some beta code in there, but I don't know if (a) I'm thick and missing something or (b) it's a known issue.

I also cannot find any examples of using scaffolds in Unity anywhere. Not even the one used in the presentation.

I'm really keen to get going with M-G so all help is appreciated.

Change History

Changed 20 years ago by joe.rinehart

  • status changed from new to closed
  • resolution set to fixed

Hi Derek,

I think you need to set the database type in ColdSpring?.xml...trying changing this line:

<property name="type"><value>mysql</value></property>

To:

<property name="type"><value>mssql</value></property>

Have a good one,

Joe

Note: See TracTickets for help on using tickets.