Opened 16 years ago

Last modified 16 years ago

#2735 new defect

msConnectLayer should be exposed to the mapscript interface

Reported by: tamas Owned by: jmckenna
Priority: normal Milestone: 5.6 release
Component: MapScript Version: unspecified
Severity: normal Keywords:
Cc: dmorissette, jmckenna

Description

By changing the connectiontype of the layer doesn't re-initialize vtable according to the new connectiontype, therefore the old vtable methods are called.

Change History (4)

comment:1 by dmorissette, 16 years ago

Cc: dmorissette added

Adding myself to CC to port the change to PHP MapScript.

comment:2 by tamas, 16 years ago

Component: MapScript-SWIGMapScript
Owner: changed from tamas to dmorissette

Changed the name to setConnectionType in r7847. Reassign to Daniel because of the PHP change.

comment:3 by dmorissette, 16 years ago

Status: newassigned

comment:4 by dmorissette, 16 years ago

Cc: jmckenna added
Owner: changed from dmorissette to jmckenna
Status: assignednew

Added layer->setConnectionType() to PHP MapScript and made connectiontype read-only in SVN trunk r7853.

I also found out in doing this that msConnectLayer() requires that the caller close the layer correctly prior to calling it, so I've included a test to check if layer is open and close it before calling msConnectLayer() in both the PHP and SWIG cases.

Reassigning to Jeff for docs updates.

Note: See TracTickets for help on using tickets.