Quantcast
Channel: SCN: Message List - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 7329

Re: Powerbuilder mysql catalog tables

$
0
0

I use ref keyword and don't need to allocate space because output parameter is not string


1) function

 

MySQL definition

FUNCTION `GetPrimary`(as_tabName VARCHAR(50))   RETURNS int(11)

PowerBuilder

function long GetPrimary(string as_tname) rpcfunc alias for 'Link.GetPrimary'

 

2) stored procedure

 

MySQL Definition

PROCEDURE `CreatePrimary`(as_tableName varchar(50),out al_key integer)

 

PowerBuilder

subroutine CreatePrimary(string as_tableName,ref long al_key) rpcfunc alias for "link.CreatePrimary"

 

I have also tried adding "ansi" to PowerBuilder alias.

 

Have you successfully called MySQL stored procedures from PowerBuilder extrenal functions?


Viewing all articles
Browse latest Browse all 7329

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>