PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Monday, July 18, 2022

[FIXED] How convert int to BigInteger (Python)

 July 18, 2022     aiogram, asyncpg, bigint, integer, python     No comments   

Issue

How do I convert int to BigInteger in Python?

I can't find anything like this on the net for python. I need to convert int to BigInteger in order to compare via Sqlalchemy ORM with the value in the database (telegram_id are registered via models with the bigint type)

error:

asyncpg.exceptions.UndefinedFunctionError: operator does not exist: bigint !~~* unknown
HINT:  No operator matches the given name and argument types. You might need to add explicit type casts.

Solution

The "BigInteger" in python is called "long". You might want to checkout this post.

(I would have answered as a comment since this is not really a solution but I can't comment yet because of my low reputation)



Answered By - Maximilian Gangloff
Answer Checked By - Robin (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing