ksycopg2 Modified Version - License Notice
============================================

Copyright (c) 2003-2019 Federico Di Gregorio  <fog@debian.org>
Copyright (c) 2020 The Psycopg Team
Copyright (c) 2024 Kingbase

This software is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (LGPL) as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

ksycopg2 is based on psycopg2 and is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Lesser General Public License for more details.

In addition, as a special exception, the copyright holders give permission to link this program with the OpenSSL library (or with modified versions of OpenSSL that use the same license as OpenSSL), and distribute linked combinations including the two.

You must obey the GNU Lesser General Public License in all respects for all of the code used other than OpenSSL. If you modify file(s) with this exception, you may extend this exception to your version of the file(s), but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. If you delete this exception statement from all source files in the program, then also delete it here.

You should have received a copy of the GNU Lesser General Public License along with psycopg2 (see the doc/ directory). If not, see <https://www.gnu.org/licenses/>.

---------------------

Modification Details:
=====================

This project is based on psycopg2 version 2.8.5 and has made the following modifications:

1. The project has been renamed from `psycopg2` to `ksycopg2`.
2. For detailed changes, see the source code with inline comments.

The modified portion of this software still adheres to the GNU Lesser General Public License v3, and all modifications must be provided in source code form.

---------------------

Alternative License
==================

The following BSD-like license applies (at your option) to the files following the pattern ``ksycopg/adapter*.{h,c}`` and ``ksycopg/microprotocol*.{h,c}``:

Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:

1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.

---------------------

Disclaimer:
===========

This software is provided "as is" without any warranty, express or implied, including but not limited to the implied warranties of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
In no event shall the copyright holders or contributors be liable for any damages arising from the use of this software, whether in contract, tort, or otherwise, even if advised of the possibility of such damages.

---------------------

Copyright Notice:
================

The original copyright of this project belongs to the psycopg2 project authors.
The modified copyright belongs to Kingbase.

