Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for DROP LOGIN for windows user #42

Open
wants to merge 17 commits into
base: ad-jira-babel-3849
Choose a base branch
from

Conversation

Deepesh125
Copy link

No description provided.

…ostgresql#1002)

Description

Adding testcases for case-insensitive collation data

The T-SQL version of information_schema.tables needs to display TABLE_NAME as lowercase for matching with sys.objects
sys.sysname and other string types in Babelfish need to have the correct collation
Resolved case-sensitivity issue with UDD column
Added testcases when a view contains collatable constants
sys.databases.name should have case-insensitive collation
sys view columns need to have the correct output type and collation
Task: BABEL-3217, BABEL-2981, BABEL-526, BABEL-3323, BABEL-3165, BABEL-3094
Signed-off-by: Satarupa Biswas [email protected]
KushaalShroff and others added 8 commits January 6, 2023 16:20
…-for-postgresql#1012)

Earlier we had a limit for 100 bind parameters for prepared statements, with this change we now have increased the limit to 2100.

Task: BABEL-3620
Authored-by: Kushaal Shroff <[email protected]>
Signed-off-by: Dipesh Dhameliya <[email protected]>
In PG, TAP test framework is used to drive tests for backup and restore, replication, etc - anything that can't really be expressed using pg_regress or the isolation test framework.

Basically, it can be used if we want something more than just comparing the expected outputs. It may include:
1. Some engine/os configuration changes
2. Start or stop the server
3. grep log messages from log file and match with expected log file output
4. system calls

In Babelfish, we can utilize the same test framework for the following scenarios:
1. pg_hba.conf changes with password authentication
2. Kerberos authentication by setting up MIT kerberos
3. SSL setup and test encrypted connection
4. Different Provisioning scenarios

Authored-by: Kuntal Ghosh <[email protected]>
Add babelfishpg_tsql—2.3—2.4.sql upgrade script changes into babelfishpg_tsql—3.0—3.1.sql upgrade script as well.

Task: BABEL-3781
Signed-off-by: pratikzode <[email protected]>
This commit adds the support for T-SQL linked server objects through
PostgreSQL foreign data wrappers (FDWs). Currently, only support for
linked servers for remote SQL Servers is added. Thus, to add linked
servers of this type, the tds_fdw extension needs to be installed.

Also, added the support for T-SQL sp_addlinkedserver stored procedure to
add a linked server in Babelfish and sys.servers system view to show
list of linked servers.

sp_addlinkedserver stored procedure has been implemented such that
internally it uses PG's CREATE FOREIGN SERVER logic and so, a linked
server added is internally a PG foreign server. sys.servers system view
uses the pg_foreign_server catalog internally.

Task: BABEL-861
Signed-off-by: Sharu Goel <[email protected]>
…gresql#955) (babelfish-for-postgresql#1030)

Description
Initially the value of is_identity is marked as 0 by default.Have added conditions in order to select between 0 and 1 in order to support SSMS scripting.

Task : BABEL-3805

Signed-off-by: Ashish Prasad [email protected]

Issues Resolved
BABEL-3805
…#1023)

We're introducing a workflow for creating the tags automatically. It'll help us to automate the open-source release process.

Task: BABEL-OSS
Signed-off-by: Shameem Ahmed <[email protected]>
…r-postgresql#1014)

In this fix we replace the palloc() call with palloc0() so that memory allocated for ParseState is zero allocated memory.

Task: BABEL-3770
Signed-off-by: Sharu Goel [email protected]
…ish-for-postgresql#1018)

In T-SQL world, Authentication mechanism would be chosen by the client as opposed to Postgres where authentication method selection would be controlled through pg_hba.conf file on server side.

For example, TDS client such as sqlcmd would not specify any username in login packet when it wants to use Kerberos/NTLM authentication.

So in order to support Kerberos authentication, this commit avoids consulting pg_hba.conf file if sspi data is present in login request during authentication.

Task: BABEL-3847, BABEL-3849

Signed-off-by: Dipesh Dhameliya [email protected]
hash-16 and others added 8 commits January 10, 2023 11:46
…#968) (babelfish-for-postgresql#1031)

Description
Initially the value of definition column in sys.computed_columns is derived from a PG function pg_get_expr.Have added a tsql function to get the computed column definition value and also fixed is_computed by adding conditions in order to select between 0 and 1 in order to support SSMS scripting.

Issue Resolved
BABEL-3806

Signed-off-by: Ashish Prasad [email protected]
…ql#990) (babelfish-for-postgresql#1028)

Previously every call to the function VarCharToDatum() previously used TDSGetEncoding() function which internally called LookupEncodingByLCID().For bulk insert scenario for every row in a table for a varchar, char, text column we called VarCharToDatum function which lead to extra calls to LookupEncodingByLCID function causing an overhead.
The current solution implemented is to at the start of request set the encoding of the column as a part of columnMetadata for both bulk insert as well as Tvp(Table valued Parameters). This would remove the redundant calls to LookupEncodingByLCID.

Issues Resolved:
BABEL-3623
Signed-off-by: Nirmit Shah [email protected]
- Update major version upgrade github workflows to use latest
- PG 14 branches as version 14.7.
- Update MVU for empty database tests to use latest branches from PG 14.
- Modified test BABEL-3793 to remove one failing sql, the removed sql is 
already getting tested in TestVariableLength-vu* test.
- Modified install-dependency composite action to retry 10 times before failing.

Task: BABEL-OSS
Signed-off-by: Rishabh Tanwar [email protected]
…admin

Previously, when adding a member to sysadmin role, there was no check on
whether current login has DB user in one of the databases. As Babelfish
does not support >1 dbo, every login has to be checked if it is a user
already when being added to sysadmin. Now, logins that already have a
user in one of the databases are blocked, when users try to add the
login to sysadmin role.

Task: BABEL-3637

Signed-off-by: Ray Kim <[email protected]>
…gresql#1009)

* Support UDTS for sequences and ISC-sequences view (babelfish-for-postgresql#663)

- Creation of view information_schema_tsql.sequences to support for T-SQL INFORMATION_SCHEMA.SEQUENCES.
- Provide support for creation of a sequence using user-defined data types which is currently not supported in Babelfish.
- Add test cases for both implementations

* added INFORMATION_SCHEMA.SEQUENCES to 3.0-3.1 upgrade script
cherry-pick commit Support UDTS for sequences and ISC-sequences view babelfish-for-postgresql#663 and
fix upgrade script of INFORMATION_SCHEMA.SEQUENCES view babelfish-for-postgresql#927 in 3_X_DEV
added INFORMATION_SCHEMA.SEQUENCES to 3.0.0-3.1.0 upgrade script.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.