Project

General

Profile

Actions

Bug #1278

closed

wt should throw exeption when dbo::hasMany and dbo::belongsTo does not have the same field.

Added by Anonymous almost 12 years ago. Updated almost 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
04/30/2012
Due date:
% Done:

0%

Estimated time:

Description

wt should throw exeption when dbo::hasMany and dbo::belongsTo does not have the same field.

example:

class A{

public:

dbo::collection<dbo::ptr > bs;

..

dbo::hasMany(a, bs, dbo::ManyToOne,

"bs");

};

class B{

public:

dbo::ptr a;

..

dbo::belongsTo(a, a, "a");

};

will cause on select statement:

[2012-Apr-30 12:52:06.901173] 3328 [/ PXMNRgr6IYE9MRsd] [error] "Wt: error during

event handling: ERROR: syntax error at end of input

LINE 1: select count(1) from ""b"\" where

^

\"

[2012-Apr-30 12:52:06.901297] 3328 [/ PXMNRgr6IYE9MRsd] [error] "Wt: fatal error:

ERROR: syntax error at end of input

LINE 1: select count(1) from ""b"\" where

Actions #1

Updated by Koen Deforche almost 12 years ago

  • Status changed from New to Resolved
  • Assignee set to Koen Deforche
  • Target version set to 3.2.2
Actions #2

Updated by Koen Deforche almost 12 years ago

  • Status changed from Resolved to Closed

Released in Wt 3.2.2

Actions

Also available in: Atom PDF