Problems with function call
Posted: Tue 21 Dec 2010 21:20
I'm using the following code to call a function in a PostgreSQL database. FYI, I've been able to get this running with a competitor's product, but if we get it running with yours, and you run it faster, you'll get a sale. The code:
string eservVideoCommand = "select ev_file from eserv_video('{0}');";
string cmdstring = String.Format(eservVideoCommand, splitFileName.FixedPiece);
PgSqlCommand cmd = new PgSqlCommand(cmdstring, conn);
cmd.CommandType = CommandType.Text;
PgSqlParameter videoId = new PgSqlParameter();
videoId.Value = splitFileName.FixedPiece;
videoId.PgSqlType = PgSqlType.Text;
DataSet ds = new DataSet();
PgSqlDataAdapter da = new PgSqlDataAdapter(cmd);
da.Fill(ds);
In this code, splitFileName.FixedPiece is a string variable. When I run it, I get the following message:
function eserv_video("unknown") does not exist.
Note that when I run using another vendor's ODBC library, the function executes correctly and data is returned.
Thanks in advance for your help.
string eservVideoCommand = "select ev_file from eserv_video('{0}');";
string cmdstring = String.Format(eservVideoCommand, splitFileName.FixedPiece);
PgSqlCommand cmd = new PgSqlCommand(cmdstring, conn);
cmd.CommandType = CommandType.Text;
PgSqlParameter videoId = new PgSqlParameter();
videoId.Value = splitFileName.FixedPiece;
videoId.PgSqlType = PgSqlType.Text;
DataSet ds = new DataSet();
PgSqlDataAdapter da = new PgSqlDataAdapter(cmd);
da.Fill(ds);
In this code, splitFileName.FixedPiece is a string variable. When I run it, I get the following message:
function eserv_video("unknown") does not exist.
Note that when I run using another vendor's ODBC library, the function executes correctly and data is returned.
Thanks in advance for your help.