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 8623915
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T07:23:51+00:00 2026-06-12T07:23:51+00:00

I am getting this error from SQLite, near ,: syntax error (code 1): ,

  • 0

I am getting this error from SQLite,

near ",": syntax error (code 1): , while compiling:

UPDATE OutfitItem 
SET outfit_img_relative_pos_x=?,clothing_item_ID=?,outfit_img_relative_pos_y=?,
outfit_img_relative_size_width=?,outfit_ID=?,outfit_img_relative_size_height=? 
WHERE (outfit_ID,clothing_item_ID) = (60,5)

May someone spot the error for me please?

The following is the code which gets compiled…

// ---updates a outfitItem---
        public boolean update(long outfitID, long clothingItemID, double imgRelativePos_X, double imgRelativePos_Y,
                double imgRelativeSize_width, double imgRelativeSize_height)
        {
            ContentValues args = new ContentValues();
            args.put(KEY_OUTFIT_ID, outfitID);
            args.put(KEY_CLOTHING_ITEM_ID, clothingItemID);
            args.put(KEY_OUTFIT_IMAGE_RELATIVE_POS_X, imgRelativePos_X);
            args.put(KEY_OUTFIT_IMAGE_RELATIVE_POS_Y, imgRelativePos_Y);
            args.put(KEY_OUTFIT_IMAGE_RELATIVE_SIZE_WIDTH, imgRelativeSize_width);
            args.put(KEY_OUTFIT_IMAGE_RELATIVE_SIZE_HEIGHT, imgRelativeSize_height);
            return db.update(TABLE_NAME, args, "(" + KEY_OUTFIT_ID + "," + KEY_CLOTHING_ITEM_ID + ") = (" + outfitID
                    + "," + clothingItemID + ")", null) > 0;
        }

The following is the code which creates the table, and note that foreign keys is set to on…

public static final String TABLE_NAME = "OutfitItem";

        public static final String TABLE_CREATE = "create table " + TABLE_NAME + "(" + KEY_OUTFIT_ID
                + " int not null REFERENCES " + Table_Outfit.TABLE_NAME + "(" + KEY_OUTFIT_ID + ") ON DELETE CASCADE,"
                + KEY_CLOTHING_ITEM_ID + " int not null REFERENCES " + Table_ClothingItem.TABLE_NAME + "("
                + KEY_CLOTHING_ITEM_ID + ") ON DELETE CASCADE, " + KEY_OUTFIT_IMAGE_RELATIVE_POS_X + " real not null, "
                + KEY_OUTFIT_IMAGE_RELATIVE_POS_Y + " real not null, " + KEY_OUTFIT_IMAGE_RELATIVE_SIZE_WIDTH
                + " real not null, " + KEY_OUTFIT_IMAGE_RELATIVE_SIZE_HEIGHT + " real not null, " + "primary key ("
                + KEY_OUTFIT_ID + "," + KEY_CLOTHING_ITEM_ID + "));";
  • 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-06-12T07:23:53+00:00Added an answer on June 12, 2026 at 7:23 am

    Your problem is in your WHERE clause:

    WHERE (outfit_ID,clothing_item_ID) = (60,5)
    

    This is not valid SQL syntax. You need to use separate conditions with the AND conjunction.

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

Sidebar

Related Questions

I am getting this error from eway token payment API, soap:ReceiverServer was unable to
I am getting this error from time to time with serialization and I don't
I keep getting this error on emulator: I copied this from a tutorial and
Hi I keep getting this error, I'm trying to get tweets from twitter via
Why I'm getting this error. My variables get the names from request, and also
Can someone please explain why I'm getting this error Type mismatch: cannot convert from
I updated from Grails 2.0 to 2.0.1 and started getting this error. Any ideas
I'm updating a project from VS2008 to VS2010 and I'm getting this error: uafxcwd.lib(afxwinappex.obj)
I'm getting this strange error message when trying to clone or pull from git.
I'm getting this exception from facebook SDK: Fatal error: Uncaught OAuthException: (#506) Duplicate status

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.