Skip to content

dolt.branches.dirty does not have boolean output #3116

Description

@zachmu

This breaks some clients that do output validation.

import psycopg2                                                                                           
conn = psycopg2.connect(host="127.0.0.1", user="postgres", password="password", dbname="postgres")        
cur = conn.cursor()                                                                                       
                                                                                                          
cur.execute('SELECT dirty::text FROM dolt.branches')                                                      
print(cur.fetchall())        # [('false',)] -- the stored value is correct                                
                                                                                                          
`cur.execute('SELECT dirty FROM dolt.branches')                                                           
print(cur.fetchall())        # psycopg2.InterfaceError: can't parse boolean: '0'                          

psycopg2.InterfaceError: can't parse boolean: '0'                                                         

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions