Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6699807
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:44:22+00:00 2026-05-26T06:44:22+00:00

I am testing some PostgreSQL functions that I did not write, one of which

  • 0

I am testing some PostgreSQL functions that I did not write, one of which is defined like:

email_maker_for_new_work_order(integer, character varying, integer[]);

I’m trying to call it like:

select email_maker_for_new_work_order(13987,"TEST_CeeLoGreen",['231822','267657','268399','270125','270127','270470','271320'])

But I get the error:

ERROR:  syntax error at or near "["
LINE 1: ..._maker_for_new_work_order(13987,"TEST_CeeLoGreen",['231822',...
                                                             ^


********** Error **********

ERROR: syntax error at or near "["
SQL state: 42601
Character: 63

I’ve tried without the single-quotes around the integer array. However, I get essentially the same error at the same location.

Any help would be appreciated. Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T06:44:23+00:00Added an answer on May 26, 2026 at 6:44 am

    The syntax is

    array[1,2,3]
    

    and note, that the arguments are not strings as in '42' but plain integers like 42.

    By the way: The part "TEST_CeeLoGreen" is interpreted as a column name, not as a plain string. Is that intended?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am testing some db layer functions. In one, I am simulating the user
I am doing some unit testing for a DAO that works with postgresql. Some
I was testing some CSS3 stuff and I discovered that some properties like border-radius
I am testing some weird-looking CSS code that I wrote (I'm using a mix
I have some concerns related to the fact of testing some functions containing the
For some testing code, I'd like to be able to host a WCF service
I'm testing some legacy code that extends the default php exception object. This code
I am testing some code that has a client exe and a server exe
While testing some scripts, I've noticed, if expiration time is little (not zero) -
I'm having difficulty testing some logic that uses notifications. I've read about enforcing that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.