We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af97ea3 commit 4e8f68dCopy full SHA for 4e8f68d
driver/ma_info.cpp
@@ -33,7 +33,7 @@ static mariadb::bytes_view zero("0", 2), one("1", 2), three("3", 2), Null, ten("
33
34
std::vector <std::vector<mariadb::bytes_view>> TypeInfoV3=
35
{
36
- {bytes_view(XBV(BIT), 4), sqlbit, one, empty, empty, Null, one, one, three, zero, zero, zero, zero, zero, zero, zero, zero,
+ {XBV(BIT), sqlbit, one, empty, empty, Null, one, one, three, zero, zero, zero, zero, zero, zero, zero, zero,
37
ten, sqlbit},
38
{XBV(BOOL), sqlbit,one,empty,empty,Null,one,one,three,zero,zero,zero,XBV(BOOL),zero,zero,zero,zero,ten, sqlbit},
39
{XBV(TINYINT),sqltinyint,three,empty,empty,Null,one,zero,three,BV(XSTR(SQL_FALSE)),zero,one,XBV(TINYINT),zero,zero,zero,zero,
test/basic.c
@@ -1,6 +1,6 @@
1
/*
2
Copyright (c) 2001, 2012, Oracle and/or its affiliates. All rights reserved.
3
- 2013, 2024 MariaDB Corporation AB
+ 2013, 2025 MariaDB Corporation plc
4
5
The MySQL Connector/ODBC is licensed under the terms of the GPLv2
6
<http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most
@@ -1582,14 +1582,14 @@ ODBC_TEST(t_odbc91)
1582
IS_STR(buffer, "t_odbc91", sizeof("t_odbc91"));
1583
/* Checking if selescting schema with USE is reflected by SQLGetConnectAttr.
1584
Re-using conn_out buffer here, as it is > NAME_LEN + "USE " and harmless to reuse */
1585
- sprintf(conn_out, "USE %s", my_schema);
+ sprintf(conn_out, "USE `%s`", my_schema);
1586
CHECK_DBC_RC(hdbc, SQLAllocHandle(SQL_HANDLE_STMT, hdbc, &hstmt));
1587
OK_SIMPLE_STMT(hstmt, conn_out);
1588
CHECK_DBC_RC(hdbc, SQLGetConnectAttr(hdbc, SQL_ATTR_CURRENT_CATALOG, buffer, sizeof(buffer), NULL));
1589
IS_STR(buffer, my_schema, strlen(my_schema));
1590
1591
/* No checking the same if changing schema is part ot a batch */
1592
- sprintf(conn_out, "USE t_odbc91;USE %s", my_schema);
+ sprintf(conn_out, "USE t_odbc91;USE `%s`", my_schema);
1593
1594
/* Session tracked after result is read */
1595
CHECK_STMT_RC(hstmt, SQLMoreResults(hstmt));
test/prepare.c
- 2013, 2022 MariaDB Corporation AB
@@ -1277,7 +1277,7 @@ ODBC_TEST(t_mdev16708)
1277
1278
skip("The test requires min 10.6.0 version");
1279
}
1280
- _snprintf(query, sizeof(query), "USE %s", my_schema);
+ _snprintf(query, sizeof(query), "USE `%s`", my_schema);
1281
CHECK_STMT_RC(Stmt, SQLPrepare(Stmt, query, SQL_NTS));
1282
/* USE in particular won't support parameters */
1283
/* CHECK_STMT_RC(Stmt, SQLBindParameter(Stmt, 1, SQL_PARAM_INPUT, SQL_C_CHAR, SQL_CHAR, 0, 0, my_schema, strlen(dbname), NULL)); */
0 commit comments