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

  • Home
  • SEARCH
  • 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 7780605
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T18:57:08+00:00 2026-06-01T18:57:08+00:00

I have a postgre table with id as SERIAL(auto-increment column), name and instruction columns.

  • 0

I have a postgre table with “id” as SERIAL(auto-increment column), “name” and “instruction” columns.

I’m trying to insert into it as:

(ql/conj! recipe-table {:id nil :name "a" :instructions "b"})

*Evaluation aborted

(ql/conj! recipe-table {:id :default :name "a" :instructions "b"})

*Evaluation aborted

(ql/conj! recipe-table {:name "a" :instructions "b"})

*Evaluation aborted

But:

(ql/conj! recipe-table {:id 1 :name "a" :instructions "b"})

works, it just inserts the 1 into id, but it doesn’t do the auto-increment part.

So I have access to the table, I have rights to write into it as proven by the last conj!, I just can’t write it with a default value.

  • 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-01T18:57:09+00:00Added an answer on June 1, 2026 at 6:57 pm

    I see that you have opened a ticket on Github and I’ll follow up there. I will however let you know, that the correct way to insert is simply by omitting the keys which have default values, ie:

    (ql/conj! recipe-table {:name “a” :instructions “b”})

    If you would be so kind as to post the SQL code which generates the exact table you’re working with, I’ll be happy to try and reproduce the issue and correct any mistakes I might uncover. This is a tested scenario so we’re either looking at a regression which has slipped past our unit tests or an issue with your database.

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

Sidebar

Related Questions

I have an Postgre database and a table called my_table. There are 4 columns
I have a Postgre database that has say 10 columns. The fifth column is
is there a way of getting table name for each column in a postgre
I have designed a table (in postgres) where 'id' column is autoincremented via its
I have a postgres table with a column (called id) which contains strings. In
Say I have a table 'orders' created as: CREATE TABLE orders (id SERIAL, customerID
I'm new to PostgreSQL. I have tables like: CREATE TABLE Person ( ID SERIAL
I have two tables like this: CREATE TABLE table1_lang ( id serial NOT NULL,
I have 2 Tables in Postgres: CREATE TABLE images ( id serial NOT NULL
I have two tables: CREATE TABLE items ( root_id integer NOT NULL, id serial

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.