Why is git committing on merge, even after "git config –global merge.commit no"?

I’m using git 2.39.2 on macOS 10.15.7 I ran the following: git config –global merge.commit no git config –global merge.ff no So my ~/.gitconfig now looks like this: # This is Git’s per-user configuration file. [user] name = myname email = myemail@example.com [http] postBuffer = 1048576000 [merge] commit = no ff = no But still,… Read More Why is git committing on merge, even after "git config –global merge.commit no"?

Export Postgresql Table to excel with header in Python

My code works but it doesn’t bring the header with the names, it only brings the numbers 0 1 … 10 , what can I do ? Utils_db.py def consulta_sql(sql): try: connection = psycopg2.connect(user="postgres", password="postgres", host="localhost", port="5432", database="tb_cliente") cursor = connection.cursor() except (Exception, psycopg2.Error) as error: try: cursor.execute(sql) connection.commit() except (Exception, psycopg2.Error) as error: finally:… Read More Export Postgresql Table to excel with header in Python

ROW_NUMBER() OVER (PARTITION BY) gives same row numbers

I use SAP HANA database for a project. I tried this SQL query to get values with a row number. But it gives 1 as all rows. SELECT ROW_NUMBER() OVER (PARTITION BY "ItemCode") AS "ID", "ItemCode", "CommitedQty", "JobId", "WarehouseID" FROM (SELECT "ItemCode", SUM("CommitedQty") AS "CommitedQty","JobId", "WarehouseID" FROM "Stock" WHERE "BaseEntry" = 10352 GROUP BY "ItemCode","JobId",… Read More ROW_NUMBER() OVER (PARTITION BY) gives same row numbers

I can't get product vendor id in django

I am working on an e-commerce project. But the product vendor id is not registered in the database. I’ve tried many ways. I would be glad if you help. seller_id always comes empty What are your suggestions? models.py class Product(models.Model): name = models.CharField(verbose_name="Məhsulun adı", max_length=150) description = models.TextField( verbose_name="Məhsul haqda məlumat", null=True) price = models.FloatField(verbose_name="Məhsulun… Read More I can't get product vendor id in django

Why is BigInt not a constructor function, unlike Number, Boolean and String?

Number, Boolean and String are constructor functions that correspond to those primitive types. BigInt is a function that corresponds to the BigInt primitive type, but it is not a constructor function. new BigInt(1n) // Uncaught TypeError: BigInt is not a constructor Why? >Solution : The functions for new primitive types (Symbol, BigInt) don’t get construction… Read More Why is BigInt not a constructor function, unlike Number, Boolean and String?