Results 1 to 2 of 2

Thread: [RESOLVED] PostgreSQL Maximum Arguments

  1. #1
    Addicted Member
    Join Date
    Aug 05
    Location
    Chesterfield, UK
    Posts
    161

    Resolved [RESOLVED] PostgreSQL Maximum Arguments

    Does anybody know of a limit to the number of arguments in a STORED FUNCTION when making a call through the PostgreSQL ODBC driver.

    I have a function with 98 arguments and if I call it through the SQL Editor in pgAdmin it works fine, yet if I call it from VB.Net it errors on the 39th and 79th arguments.

    I'm 100% sure the VB code's not at fault as its working on another database, the only code I have had to change for PostgreSQL in VB was a 'call <function>' to 'select <function>'. The data types around where it errors are all 'CHAR'.

    Thanks
    Beware of programmers who carry screwdrivers.

  2. #2
    Addicted Member
    Join Date
    Aug 05
    Location
    Chesterfield, UK
    Posts
    161

    Re: PostgreSQL Maximum Arguments

    Sorry!, sorted it. VB was calling some of the arguments as DOUBLE but I noticed the FUNCTION had converted the data type to numeric. I changed VB OdbcType.Numeric and it worked.
    Beware of programmers who carry screwdrivers.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •